Files
rust/compiler/rustc_resolve
bors 096694416a Auto merge of #158035 - LorrensP-2158466:import-cycle-det, r=petrochenkov
resolve: Explicit Set for detecting resolution cycles



Instead of using the `borrow_mut` counter of a `RefCell` for a `NameResolution` for detecting cyclic imports during import resolution, we use an explicit recursion stack that keeps track of the current used `NameResolution`s.

Because of the upcoming parallelisation of the import resolution algorithm, the current way cannot used in a parallel context.


r? @petrochenkov
2026-06-29 18:35:05 +00:00
..
2026-06-24 23:18:10 +01:00