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.
This commit is contained in:
Jeremy Fitzhardinge 2022-04-14 15:09:00 -07:00 committed by Jeremy Fitzhardinge
parent b21759f550
commit 9102edf208
6 changed files with 38 additions and 1 deletions

View file

@ -66,6 +66,7 @@ where
location: ExternLocation::ExactPaths(locations),
is_private_dep: false,
add_prelude: true,
nounused_dep: false,
}
}