diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-01-31 19:55:34 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-09 20:07:38 +0100 |
| commit | 6c2ee885e635a411946329e974d6be3d94d3b715 (patch) | |
| tree | 89d664a13c30f9340e1ee9bccfced13a75b0d61d /compiler/rustc_interface | |
| parent | bf242bb1199e25ca2274df5c4114e0c9436b74e9 (diff) | |
| download | rust-6c2ee885e635a411946329e974d6be3d94d3b715.tar.gz rust-6c2ee885e635a411946329e974d6be3d94d3b715.zip | |
Ensure that queries only return Copy types.
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 7a3d77466c5..f5a4e11de16 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -658,13 +658,13 @@ fn write_out_deps( boxed_resolver.borrow_mut().access(|resolver| { for cnum in resolver.cstore().crates_untracked() { let source = resolver.cstore().crate_source_untracked(cnum); - if let Some((path, _)) = source.dylib { + if let Some((path, _)) = &source.dylib { files.push(escape_dep_filename(&path.display().to_string())); } - if let Some((path, _)) = source.rlib { + if let Some((path, _)) = &source.rlib { files.push(escape_dep_filename(&path.display().to_string())); } - if let Some((path, _)) = source.rmeta { + if let Some((path, _)) = &source.rmeta { files.push(escape_dep_filename(&path.display().to_string())); } } |
