-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
258 changed files
with
1,735 additions
and
1,058 deletions.
There are no files selected for viewing
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
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
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
21 changes: 21 additions & 0 deletions
21
tests/ui-cargo/cargo_rust_version/fail_both_diff/Cargo.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,21 @@ | ||
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.59.0` from `clippy.toml` | ||
|
||
error: unnecessary structure name repetition | ||
--> src/main.rs:6:21 | ||
| | ||
6 | pub fn bar() -> Foo { | ||
| ^^^ help: use the applicable keyword: `Self` | ||
| | ||
note: the lint level is defined here | ||
--> src/main.rs:1:9 | ||
| | ||
1 | #![deny(clippy::use_self)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: unnecessary structure name repetition | ||
--> src/main.rs:7:9 | ||
| | ||
7 | Foo | ||
| ^^^ help: use the applicable keyword: `Self` | ||
|
||
error: could not compile `fail-both-diff` (bin "fail-both-diff") due to 2 previous errors; 1 warning emitted |
22 changes: 0 additions & 22 deletions
22
tests/ui-cargo/cargo_rust_version/fail_both_diff/src/main.stderr
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
tests/ui-cargo/cargo_rust_version/fail_both_same/Cargo.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,19 @@ | ||
error: unnecessary structure name repetition | ||
--> src/main.rs:6:21 | ||
| | ||
6 | pub fn bar() -> Foo { | ||
| ^^^ help: use the applicable keyword: `Self` | ||
| | ||
note: the lint level is defined here | ||
--> src/main.rs:1:9 | ||
| | ||
1 | #![deny(clippy::use_self)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: unnecessary structure name repetition | ||
--> src/main.rs:7:9 | ||
| | ||
7 | Foo | ||
| ^^^ help: use the applicable keyword: `Self` | ||
|
||
error: could not compile `fail-both-same` (bin "fail-both-same") due to 2 previous errors |
20 changes: 0 additions & 20 deletions
20
tests/ui-cargo/cargo_rust_version/fail_both_same/src/main.stderr
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
error: unnecessary structure name repetition | ||
--> src/main.rs:6:21 | ||
| | ||
6 | pub fn bar() -> Foo { | ||
| ^^^ help: use the applicable keyword: `Self` | ||
| | ||
note: the lint level is defined here | ||
--> src/main.rs:1:9 | ||
| | ||
1 | #![deny(clippy::use_self)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: unnecessary structure name repetition | ||
--> src/main.rs:7:9 | ||
| | ||
7 | Foo | ||
| ^^^ help: use the applicable keyword: `Self` | ||
|
||
error: could not compile `fail-cargo` (bin "fail-cargo") due to 2 previous errors |
20 changes: 0 additions & 20 deletions
20
tests/ui-cargo/cargo_rust_version/fail_cargo/src/main.stderr
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
tests/ui-cargo/cargo_rust_version/fail_clippy/Cargo.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,19 @@ | ||
error: unnecessary structure name repetition | ||
--> src/main.rs:6:21 | ||
| | ||
6 | pub fn bar() -> Foo { | ||
| ^^^ help: use the applicable keyword: `Self` | ||
| | ||
note: the lint level is defined here | ||
--> src/main.rs:1:9 | ||
| | ||
1 | #![deny(clippy::use_self)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: unnecessary structure name repetition | ||
--> src/main.rs:7:9 | ||
| | ||
7 | Foo | ||
| ^^^ help: use the applicable keyword: `Self` | ||
|
||
error: could not compile `fail-clippy` (bin "fail-clippy") due to 2 previous errors |
15 changes: 7 additions & 8 deletions
15
..._rust_version/fail_clippy/src/main.stderr → ..._rust_version/fail_file_attr/Cargo.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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
error: unnecessary structure name repetition | ||
--> $DIR/main.rs:6:21 | ||
--> src/main.rs:11:21 | ||
| | ||
LL | pub fn bar() -> Foo { | ||
11 | pub fn bar() -> Foo { | ||
| ^^^ help: use the applicable keyword: `Self` | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/main.rs:1:9 | ||
--> src/main.rs:6:9 | ||
| | ||
LL | #![deny(clippy::use_self)] | ||
6 | #![deny(clippy::use_self)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: unnecessary structure name repetition | ||
--> $DIR/main.rs:7:9 | ||
--> src/main.rs:12:9 | ||
| | ||
LL | Foo | ||
12 | Foo | ||
| ^^^ help: use the applicable keyword: `Self` | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
error: could not compile `fail-file-attr` (bin "fail-file-attr") due to 2 previous errors |
20 changes: 0 additions & 20 deletions
20
tests/ui-cargo/cargo_rust_version/fail_file_attr/src/main.stderr
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...st_version/warn_both_diff/src/main.stderr → ..._rust_version/warn_both_diff/Cargo.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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.13.0` from `clippy.toml` | ||
|
||
warning: 1 warning emitted | ||
|
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,52 @@ | ||
error: file is loaded as a module multiple times: `src/b.rs` | ||
--> src/main.rs:5:1 | ||
| | ||
5 | mod b; | ||
| ^^^^^^ first loaded here | ||
6 | / #[path = "b.rs"] | ||
7 | | mod b2; | ||
| |_______^ loaded again here | ||
| | ||
= help: replace all but one `mod` item with `use` items | ||
= note: `-D clippy::duplicate-mod` implied by `-D warnings` | ||
|
||
error: file is loaded as a module multiple times: `src/c.rs` | ||
--> src/main.rs:9:1 | ||
| | ||
9 | mod c; | ||
| ^^^^^^ first loaded here | ||
10 | / #[path = "c.rs"] | ||
11 | | mod c2; | ||
| |_______^ loaded again here | ||
12 | / #[path = "c.rs"] | ||
13 | | mod c3; | ||
| |_______^ loaded again here | ||
| | ||
= help: replace all but one `mod` item with `use` items | ||
|
||
error: file is loaded as a module multiple times: `src/d.rs` | ||
--> src/main.rs:18:1 | ||
| | ||
18 | mod d; | ||
| ^^^^^^ first loaded here | ||
19 | / #[path = "d.rs"] | ||
20 | | mod d2; | ||
| |_______^ loaded again here | ||
| | ||
= help: replace all but one `mod` item with `use` items | ||
|
||
error: file is loaded as a module multiple times: `src/from_other_module.rs` | ||
--> src/main.rs:15:1 | ||
| | ||
15 | mod from_other_module; | ||
| ^^^^^^^^^^^^^^^^^^^^^^ first loaded here | ||
| | ||
::: src/other_module/mod.rs:1:1 | ||
| | ||
1 | / #[path = "../from_other_module.rs"] | ||
2 | | mod m; | ||
| |______^ loaded again here | ||
| | ||
= help: replace all but one `mod` item with `use` items | ||
|
||
error: could not compile `duplicate_mod` (bin "duplicate_mod") due to 4 previous errors |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
error: the "no-" prefix in the feature name "no-qaq" is negative | ||
| | ||
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality | ||
= note: `-D clippy::negative-feature-names` implied by `-D warnings` | ||
|
||
error: the "no_" prefix in the feature name "no_qaq" is negative | ||
| | ||
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality | ||
|
||
error: the "not-" prefix in the feature name "not-orz" is negative | ||
| | ||
= help: consider renaming the feature to "orz", but make sure the feature adds functionality | ||
|
||
error: the "not_" prefix in the feature name "not_orz" is negative | ||
| | ||
= help: consider renaming the feature to "orz", but make sure the feature adds functionality | ||
|
||
error: the "-support" suffix in the feature name "qvq-support" is redundant | ||
| | ||
= help: consider renaming the feature to "qvq" | ||
= note: `-D clippy::redundant-feature-names` implied by `-D warnings` | ||
|
||
error: the "_support" suffix in the feature name "qvq_support" is redundant | ||
| | ||
= help: consider renaming the feature to "qvq" | ||
|
||
error: the "use-" prefix in the feature name "use-qwq" is redundant | ||
| | ||
= help: consider renaming the feature to "qwq" | ||
|
||
error: the "use_" prefix in the feature name "use_qwq" is redundant | ||
| | ||
= help: consider renaming the feature to "qwq" | ||
|
||
error: the "with-" prefix in the feature name "with-owo" is redundant | ||
| | ||
= help: consider renaming the feature to "owo" | ||
|
||
error: the "with_" prefix in the feature name "with_owo" is redundant | ||
| | ||
= help: consider renaming the feature to "owo" | ||
|
||
error: could not compile `feature_name` (bin "feature_name") due to 10 previous errors |
Oops, something went wrong.