mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-11 06:37:57 +00:00

rustc: Use `tcx.used_crates(())` more And explain when it should be used. Addresses comments from https://github.com/rust-lang/rust/pull/121167.
For more information about how rustc works, see the rustc dev guide.