]> git.lizzy.rs Git - rust.git/commit
Add --json unused-externs-silent with original behaviour
authorJeremy Fitzhardinge <jeremy@goop.org>
Sun, 17 Apr 2022 00:11:33 +0000 (17:11 -0700)
committerJeremy Fitzhardinge <jsgf@fb.com>
Wed, 27 Apr 2022 17:04:25 +0000 (10:04 -0700)
commitc6bafa7322943643f37f8818bcb16dad28f53d26
treef63e5f8cebd10d74580c65a758ca222076936efe
parent0529a13b5db43952a88504fb16fd561adbcdcc14
Add --json unused-externs-silent with original behaviour

Since Cargo wants to do its own fatal error handling for unused
dependencies, add the option `--json unused-externs-silent` which
has the original behaviour of not indicating non-zero exit status for
`deny`/`forbid`-level unused dependencies.
compiler/rustc_errors/src/lib.rs
compiler/rustc_metadata/src/creader.rs
compiler/rustc_session/src/config.rs
compiler/rustc_session/src/options.rs
src/librustdoc/config.rs
src/librustdoc/doctest.rs
src/test/ui/unused-crate-deps/deny-cmdline-json-silent.rs [new file with mode: 0644]
src/test/ui/unused-crate-deps/deny-cmdline-json-silent.stderr [new file with mode: 0644]