mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-11 22:58:12 +00:00

Erase `ReError` properly Fixes #111341 Since we check whether a type has free regions before erasing (to short circuit unnecesary folding), we need to consider `ReError` as a free region, or else we'll skip it when erasing a type that only mentions `ReError`. cc `@nnethercote`
For more information about how rustc works, see the rustc dev guide.