You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in any case, while discussing the matter with centril they pointed out their own list of transformations they perform while minimizing bugs. I noted that while I often do similar things, I didn't document any of them in my first blog post on the subject.
Here was Centril's list:
Ah cool; before I read the post, here are some things I would do myself:
Remove elided lifetimes for explicit quantification
Desugar bounds to where clauses
Create dummy functions and/or use panic!() liberally as a substitute while shrinking
Generally prefer desugared constructs (match over if, type Alias = impl Trait; over -> impl Trait, the actual type over Self)
Prefer record structs and variants over tuple structs (simplifies the MIR)
When you've minimized a bit and it's reasonably short, look at the MIR to see if you can shrink some more
I do plan to eventually finish my epic saga of minimizing rust-lang/rust#65774
Or maybe I'll document the process of minimizing a different bug
The text was updated successfully, but these errors were encountered: