diff options
| author | bors <bors@rust-lang.org> | 2022-04-28 04:17:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-28 04:17:52 +0000 |
| commit | 0e7915d11f6888f005e78c2358fcdc48ff655753 (patch) | |
| tree | b5df5a22a17acee9c13ce2a0e469704539dd0850 /compiler/rustc_parse/src | |
| parent | 81799cd8fd841e23b52876ae5e22faeb3ad04eb5 (diff) | |
| parent | c6bafa7322943643f37f8818bcb16dad28f53d26 (diff) | |
| download | rust-0e7915d11f6888f005e78c2358fcdc48ff655753.tar.gz rust-0e7915d11f6888f005e78c2358fcdc48ff655753.zip | |
Auto merge of #96085 - jsgf:deny-unused-deps, r=compiler-errors
Make sure `-Dunused-crate-dependencies --json unused-externs` makes rustc exit with error status This PR: - fixes compiletest to understand unused extern notifications - adds tests for `--json unused-externs` - makes sure that deny-level unused externs notifications are treated as compile errors - refactors the `emit_unused_externs` callstack to plumb through the level as an enum as a string, and adds `Level::is_error` Update: adds `--json unused-externs-silent` with the original behaviour since Cargo needs it. Should address `@est31's` concerns. Fixes: https://github.com/rust-lang/rust/issues/96068
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
