diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-05-10 17:29:02 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-05-22 18:02:51 +0300 |
| commit | 711338bd9f957b7bd345323033e9037c0e1ca535 (patch) | |
| tree | 3ad83bd2c7bcee007c49752f517483e77eb53856 /compiler/rustc_interface/src | |
| parent | f0038a7c8fd8b5b8a949c92ae6419bcb59a09e72 (diff) | |
| download | rust-711338bd9f957b7bd345323033e9037c0e1ca535.tar.gz rust-711338bd9f957b7bd345323033e9037c0e1ca535.zip | |
rustc: Use `tcx.used_crates(())` more
And explain when it should be used.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 76d5d7a3ac2..f1f9b743851 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -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())); |
