Do something better when there's a mismatch between identical-looking regions #15391
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
It's a very common experience for rustc to tell you it couldn't unify two regions, then print out the span of those regions, only to have them look identical. Seeing enough of these can be rage-inducing.
I don't have a great concrete suggestion, but even just printing a single region and saying something like 'yeah, I know these regions look the same. sorry', might ease the pain a bit.
The text was updated successfully, but these errors were encountered: