1
Fork 0

Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk"

This reverts commit eda4a35f36, reversing
changes made to eb6b35b5bc.
This commit is contained in:
Rémy Rakic 2024-06-06 09:45:50 +00:00
parent 2b6a34273d
commit 0a4176a831
23 changed files with 47 additions and 54 deletions

View file

@ -541,7 +541,7 @@ pub fn collect_debugger_visualizers_transitive(
tcx.debugger_visualizers(LOCAL_CRATE)
.iter()
.chain(
tcx.used_crates(())
tcx.crates(())
.iter()
.filter(|&cnum| {
let used_crate_source = tcx.used_crate_source(*cnum);
@ -851,7 +851,7 @@ impl CrateInfo {
// `compiler_builtins` are always placed last to ensure that they're linked correctly.
used_crates.extend(compiler_builtins);
let crates = tcx.used_crates(());
let crates = tcx.crates(());
let n_crates = crates.len();
let mut info = CrateInfo {
target_cpu,