mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
d203fceeb1
Prevent very long compilation runtimes in LateBoundRegionNameCollector Fixes https://github.com/rust-lang/rust/issues/83150 On recursive types such as in the example given in https://github.com/rust-lang/rust/issues/83150, the current implementation of `LateBoundRegionNameCollector` has very long compilation runtimes. To prevent those we store the types visited in the `middle::ty::Visitor` implementation of `LateBoundRegionNameCollector` in a `SsoHashSet`.
For more information about how rustc works, see the rustc dev guide.