about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-28 04:17:52 +0000
committerbors <bors@rust-lang.org>2022-04-28 04:17:52 +0000
commit0e7915d11f6888f005e78c2358fcdc48ff655753 (patch)
treeb5df5a22a17acee9c13ce2a0e469704539dd0850 /compiler/rustc_parse/src
parent81799cd8fd841e23b52876ae5e22faeb3ad04eb5 (diff)
parentc6bafa7322943643f37f8818bcb16dad28f53d26 (diff)
downloadrust-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