mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 09:32:15 +00:00
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