rustc: Use tcx.used_crates(())
more
And explain when it should be used.
This commit is contained in:
parent
f0038a7c8f
commit
711338bd9f
23 changed files with 54 additions and 47 deletions
|
@ -458,7 +458,7 @@ fn write_out_deps(tcx: TyCtxt<'_>, outputs: &OutputFilenames, out_filenames: &[P
|
|||
}
|
||||
}
|
||||
|
||||
for &cnum in tcx.crates(()) {
|
||||
for &cnum in tcx.crates_including_speculative(()) {
|
||||
let source = tcx.used_crate_source(cnum);
|
||||
if let Some((path, _)) = &source.dylib {
|
||||
files.push(escape_dep_filename(&path.display().to_string()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue