mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 19:16:36 +00:00
Only collect mono items from reachable blocks Fixes the wrong comment pointed out in: https://github.com/rust-lang/rust/pull/121421#discussion_r1537378431 Moves the analysis to use the worklist strategy: https://github.com/rust-lang/rust/pull/121421#discussion_r1501840823 Also fixes https://github.com/rust-lang/rust/issues/85836, using the same reachability analysis
For more information about how rustc works, see the rustc dev guide.