File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11// aux-build:lint-group-plugin-test.rs
2- // compile-flags: -F unused -A unused
2+ // compile-flags: -F unused -D forbidden_lint_groups -A unused -Z deduplicate-diagnostics=yes
3+ //~^^ ERROR: allow(unused) incompatible
4+ //~| WARNING: this was previously accepted
5+ //~| ERROR: allow(unused) incompatible
6+ //~| WARNING: this was previously accepted
37
48fn main ( ) {
59 let x = 1 ;
6- //~^ ERROR unused variable: `x`
710}
Original file line number Diff line number Diff line change 1- error: unused variable: `x`
2- --> $DIR/lint-group-forbid-always-trumps-cli.rs:5:9
1+ error: allow(unused) incompatible with previous forbid
32 |
4- LL | let x = 1;
5- | ^ help: if this is intentional, prefix it with an underscore: `_x`
3+ = note: requested on the command line with `-D forbidden-lint-groups`
4+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5+ = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670>
6+ = note: `forbid` lint level was set on command line
7+
8+ error: allow(unused) incompatible with previous forbid
69 |
7- = note: `-F unused-variables` implied by `-F unused`
10+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11+ = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670>
12+ = note: `forbid` lint level was set on command line
813
9- error: aborting due to previous error
14+ error: aborting due to 2 previous errors
1015
You can’t perform that action at this time.
0 commit comments