mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 11:17:04 +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.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.