-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend group-forbid-always-trumps-cli test
- Loading branch information
Showing
10 changed files
with
88 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...int/group-forbid-always-trumps-cli.stderr → ...lways-trumps-cli.allow-first-group.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/ui/lint/forbid-always-trumps-cli.allow-first-lint.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: unused variable: `x` | ||
--> $DIR/forbid-always-trumps-cli.rs:15:9 | ||
| | ||
LL | let x = 1; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_x` | ||
| | ||
= note: requested on the command line with `-F unused-variables` | ||
|
||
error: aborting due to 1 previous error | ||
|
10 changes: 10 additions & 0 deletions
10
tests/ui/lint/forbid-always-trumps-cli.allow-first-mix1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: unused variable: `x` | ||
--> $DIR/forbid-always-trumps-cli.rs:15:9 | ||
| | ||
LL | let x = 1; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_x` | ||
| | ||
= note: `-F unused-variables` implied by `-F unused` | ||
|
||
error: aborting due to 1 previous error | ||
|
10 changes: 10 additions & 0 deletions
10
tests/ui/lint/forbid-always-trumps-cli.allow-first-mix2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: unused variable: `x` | ||
--> $DIR/forbid-always-trumps-cli.rs:15:9 | ||
| | ||
LL | let x = 1; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_x` | ||
| | ||
= note: requested on the command line with `-F unused-variables` | ||
|
||
error: aborting due to 1 previous error | ||
|
10 changes: 10 additions & 0 deletions
10
tests/ui/lint/forbid-always-trumps-cli.forbid-first-group.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: unused variable: `x` | ||
--> $DIR/forbid-always-trumps-cli.rs:15:9 | ||
| | ||
LL | let x = 1; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_x` | ||
| | ||
= note: `-F unused-variables` implied by `-F unused` | ||
|
||
error: aborting due to 1 previous error | ||
|
10 changes: 10 additions & 0 deletions
10
tests/ui/lint/forbid-always-trumps-cli.forbid-first-lint.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: unused variable: `x` | ||
--> $DIR/forbid-always-trumps-cli.rs:15:9 | ||
| | ||
LL | let x = 1; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_x` | ||
| | ||
= note: requested on the command line with `-F unused-variables` | ||
|
||
error: aborting due to 1 previous error | ||
|
10 changes: 10 additions & 0 deletions
10
tests/ui/lint/forbid-always-trumps-cli.forbid-first-mix1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: unused variable: `x` | ||
--> $DIR/forbid-always-trumps-cli.rs:15:9 | ||
| | ||
LL | let x = 1; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_x` | ||
| | ||
= note: `-F unused-variables` implied by `-F unused` | ||
|
||
error: aborting due to 1 previous error | ||
|
10 changes: 10 additions & 0 deletions
10
tests/ui/lint/forbid-always-trumps-cli.forbid-first-mix2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: unused variable: `x` | ||
--> $DIR/forbid-always-trumps-cli.rs:15:9 | ||
| | ||
LL | let x = 1; | ||
| ^ help: if this is intentional, prefix it with an underscore: `_x` | ||
| | ||
= note: requested on the command line with `-F unused-variables` | ||
|
||
error: aborting due to 1 previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! Ensure that "forbid" always trumps" allow" in CLI arguments, no matter the order | ||
//! and no matter whether it is used with a lint group vs an individual lint. | ||
// ignore-tidy-linelength | ||
//@ revisions: forbid-first-group allow-first-group forbid-first-lint allow-first-lint forbid-first-mix1 allow-first-mix1 forbid-first-mix2 allow-first-mix2 | ||
//@[forbid-first-group] compile-flags: -F unused -A unused | ||
//@[allow-first-group] compile-flags: -A unused -F unused | ||
//@[forbid-first-lint] compile-flags: -F unused_variables -A unused_variables | ||
//@[allow-first-lint] compile-flags: -A unused_variables -F unused_variables | ||
//@[forbid-first-mix1] compile-flags: -F unused -A unused_variables | ||
//@[allow-first-mix1] compile-flags: -A unused_variables -F unused | ||
//@[forbid-first-mix2] compile-flags: -F unused_variables -A unused | ||
//@[allow-first-mix2] compile-flags: -A unused -F unused_variables | ||
|
||
fn main() { | ||
let x = 1; | ||
//~^ ERROR unused variable: `x` | ||
} |
This file was deleted.
Oops, something went wrong.