about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-24 07:17:20 +0000
committerbors <bors@rust-lang.org>2022-04-24 07:17:20 +0000
commitb759b2218649016cc40e82bdd6d958e2277ff6d7 (patch)
treea636703e82becf64d862221242b19471b364d579 /compiler/rustc_interface/src
parentb21759f5509477522a208b27bec5822d89f7c6b8 (diff)
parent9102edf20861be49aac75c887b8c5096d82b1b55 (diff)
downloadrust-b759b2218649016cc40e82bdd6d958e2277ff6d7.tar.gz
rust-b759b2218649016cc40e82bdd6d958e2277ff6d7.zip
Auto merge of #96067 - jsgf:extern-nounused, r=compiler-errors
Add support for `nounused` --extern flag

This adds `nounused` to the set of extern flags:
`--extern nounused:core=/path/to/core/libcore.rlib`.

The effect of this flag is to suppress `unused-crate-dependencies`
warnings relating to the crate.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index fe75ee8b37b..6caa1032ba3 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -66,6 +66,7 @@ where
         location: ExternLocation::ExactPaths(locations),
         is_private_dep: false,
         add_prelude: true,
+        nounused_dep: false,
     }
 }