Skip to content

Commit 55a8fa4

Browse files
committed
Update tests
1 parent de557e5 commit 55a8fa4

File tree

258 files changed

+1758
-1196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+1758
-1196
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: package `cargo_common_metadata_fail` is missing `package.description` metadata
2-
|
3-
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
2+
|
3+
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
44

55
error: package `cargo_common_metadata_fail` is missing `either package.license or package.license_file` metadata
66

@@ -12,5 +12,4 @@ error: package `cargo_common_metadata_fail` is missing `package.keywords` metada
1212

1313
error: package `cargo_common_metadata_fail` is missing `package.categories` metadata
1414

15-
error: aborting due to 6 previous errors
16-
15+
error: could not compile `cargo_common_metadata_fail` (bin "cargo_common_metadata_fail") due to 6 previous errors
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: package `cargo_common_metadata_fail_publish` is missing `package.description` metadata
2-
|
3-
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
2+
|
3+
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
44

55
error: package `cargo_common_metadata_fail_publish` is missing `either package.license or package.license_file` metadata
66

@@ -12,5 +12,4 @@ error: package `cargo_common_metadata_fail_publish` is missing `package.keywords
1212

1313
error: package `cargo_common_metadata_fail_publish` is missing `package.categories` metadata
1414

15-
error: aborting due to 6 previous errors
16-
15+
error: could not compile `cargo_common_metadata_fail_publish` (bin "cargo_common_metadata_fail_publish") due to 6 previous errors
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: package `cargo_common_metadata_fail_publish_true` is missing `package.description` metadata
2-
|
3-
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
2+
|
3+
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
44

55
error: package `cargo_common_metadata_fail_publish_true` is missing `either package.license or package.license_file` metadata
66

@@ -12,5 +12,4 @@ error: package `cargo_common_metadata_fail_publish_true` is missing `package.key
1212

1313
error: package `cargo_common_metadata_fail_publish_true` is missing `package.categories` metadata
1414

15-
error: aborting due to 6 previous errors
16-
15+
error: could not compile `cargo_common_metadata_fail_publish_true` (bin "cargo_common_metadata_fail_publish_true") due to 6 previous errors
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.59.0` from `clippy.toml`
2+
3+
error: unnecessary structure name repetition
4+
--> src/main.rs:6:21
5+
|
6+
6 | pub fn bar() -> Foo {
7+
| ^^^ help: use the applicable keyword: `Self`
8+
|
9+
note: the lint level is defined here
10+
--> src/main.rs:1:9
11+
|
12+
1 | #![deny(clippy::use_self)]
13+
| ^^^^^^^^^^^^^^^^
14+
15+
error: unnecessary structure name repetition
16+
--> src/main.rs:7:9
17+
|
18+
7 | Foo
19+
| ^^^ help: use the applicable keyword: `Self`
20+
21+
error: could not compile `fail-both-diff` (bin "fail-both-diff") due to 2 previous errors; 1 warning emitted

tests/ui-cargo/cargo_rust_version/fail_both_diff/src/main.stderr

-22
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error: unnecessary structure name repetition
2+
--> src/main.rs:6:21
3+
|
4+
6 | pub fn bar() -> Foo {
5+
| ^^^ help: use the applicable keyword: `Self`
6+
|
7+
note: the lint level is defined here
8+
--> src/main.rs:1:9
9+
|
10+
1 | #![deny(clippy::use_self)]
11+
| ^^^^^^^^^^^^^^^^
12+
13+
error: unnecessary structure name repetition
14+
--> src/main.rs:7:9
15+
|
16+
7 | Foo
17+
| ^^^ help: use the applicable keyword: `Self`
18+
19+
error: could not compile `fail-both-same` (bin "fail-both-same") due to 2 previous errors

tests/ui-cargo/cargo_rust_version/fail_both_same/src/main.stderr

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error: unnecessary structure name repetition
2+
--> src/main.rs:6:21
3+
|
4+
6 | pub fn bar() -> Foo {
5+
| ^^^ help: use the applicable keyword: `Self`
6+
|
7+
note: the lint level is defined here
8+
--> src/main.rs:1:9
9+
|
10+
1 | #![deny(clippy::use_self)]
11+
| ^^^^^^^^^^^^^^^^
12+
13+
error: unnecessary structure name repetition
14+
--> src/main.rs:7:9
15+
|
16+
7 | Foo
17+
| ^^^ help: use the applicable keyword: `Self`
18+
19+
error: could not compile `fail-cargo` (bin "fail-cargo") due to 2 previous errors

tests/ui-cargo/cargo_rust_version/fail_cargo/src/main.stderr

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error: unnecessary structure name repetition
2+
--> src/main.rs:6:21
3+
|
4+
6 | pub fn bar() -> Foo {
5+
| ^^^ help: use the applicable keyword: `Self`
6+
|
7+
note: the lint level is defined here
8+
--> src/main.rs:1:9
9+
|
10+
1 | #![deny(clippy::use_self)]
11+
| ^^^^^^^^^^^^^^^^
12+
13+
error: unnecessary structure name repetition
14+
--> src/main.rs:7:9
15+
|
16+
7 | Foo
17+
| ^^^ help: use the applicable keyword: `Self`
18+
19+
error: could not compile `fail-clippy` (bin "fail-clippy") due to 2 previous errors
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
error: unnecessary structure name repetition
2-
--> $DIR/main.rs:6:21
2+
--> src/main.rs:11:21
33
|
4-
LL | pub fn bar() -> Foo {
4+
11 | pub fn bar() -> Foo {
55
| ^^^ help: use the applicable keyword: `Self`
66
|
77
note: the lint level is defined here
8-
--> $DIR/main.rs:1:9
8+
--> src/main.rs:6:9
99
|
10-
LL | #![deny(clippy::use_self)]
10+
6 | #![deny(clippy::use_self)]
1111
| ^^^^^^^^^^^^^^^^
1212

1313
error: unnecessary structure name repetition
14-
--> $DIR/main.rs:7:9
14+
--> src/main.rs:12:9
1515
|
16-
LL | Foo
16+
12 | Foo
1717
| ^^^ help: use the applicable keyword: `Self`
1818

19-
error: aborting due to 2 previous errors
20-
19+
error: could not compile `fail-file-attr` (bin "fail-file-attr") due to 2 previous errors

tests/ui-cargo/cargo_rust_version/fail_file_attr/src/main.stderr

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.13.0` from `clippy.toml`
22

3-
warning: 1 warning emitted
4-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
error: file is loaded as a module multiple times: `src/b.rs`
2+
--> src/main.rs:5:1
3+
|
4+
5 | mod b;
5+
| ^^^^^^ first loaded here
6+
6 | / #[path = "b.rs"]
7+
7 | | mod b2;
8+
| |_______^ loaded again here
9+
|
10+
= help: replace all but one `mod` item with `use` items
11+
= note: `-D clippy::duplicate-mod` implied by `-D warnings`
12+
13+
error: file is loaded as a module multiple times: `src/c.rs`
14+
--> src/main.rs:9:1
15+
|
16+
9 | mod c;
17+
| ^^^^^^ first loaded here
18+
10 | / #[path = "c.rs"]
19+
11 | | mod c2;
20+
| |_______^ loaded again here
21+
12 | / #[path = "c.rs"]
22+
13 | | mod c3;
23+
| |_______^ loaded again here
24+
|
25+
= help: replace all but one `mod` item with `use` items
26+
27+
error: file is loaded as a module multiple times: `src/d.rs`
28+
--> src/main.rs:18:1
29+
|
30+
18 | mod d;
31+
| ^^^^^^ first loaded here
32+
19 | / #[path = "d.rs"]
33+
20 | | mod d2;
34+
| |_______^ loaded again here
35+
|
36+
= help: replace all but one `mod` item with `use` items
37+
38+
error: file is loaded as a module multiple times: `src/from_other_module.rs`
39+
--> src/main.rs:15:1
40+
|
41+
15 | mod from_other_module;
42+
| ^^^^^^^^^^^^^^^^^^^^^^ first loaded here
43+
|
44+
::: src/other_module/mod.rs:1:1
45+
|
46+
1 | / #[path = "../from_other_module.rs"]
47+
2 | | mod m;
48+
| |______^ loaded again here
49+
|
50+
= help: replace all but one `mod` item with `use` items
51+
52+
error: could not compile `duplicate_mod` (bin "duplicate_mod") due to 4 previous errors

tests/ui-cargo/duplicate_mod/fail/src/main.stderr

-53
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
error: the "no-" prefix in the feature name "no-qaq" is negative
2+
|
3+
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality
4+
= note: `-D clippy::negative-feature-names` implied by `-D warnings`
5+
6+
error: the "no_" prefix in the feature name "no_qaq" is negative
7+
|
8+
= help: consider renaming the feature to "qaq", but make sure the feature adds functionality
9+
10+
error: the "not-" prefix in the feature name "not-orz" is negative
11+
|
12+
= help: consider renaming the feature to "orz", but make sure the feature adds functionality
13+
14+
error: the "not_" prefix in the feature name "not_orz" is negative
15+
|
16+
= help: consider renaming the feature to "orz", but make sure the feature adds functionality
17+
18+
error: the "-support" suffix in the feature name "qvq-support" is redundant
19+
|
20+
= help: consider renaming the feature to "qvq"
21+
= note: `-D clippy::redundant-feature-names` implied by `-D warnings`
22+
23+
error: the "_support" suffix in the feature name "qvq_support" is redundant
24+
|
25+
= help: consider renaming the feature to "qvq"
26+
27+
error: the "use-" prefix in the feature name "use-qwq" is redundant
28+
|
29+
= help: consider renaming the feature to "qwq"
30+
31+
error: the "use_" prefix in the feature name "use_qwq" is redundant
32+
|
33+
= help: consider renaming the feature to "qwq"
34+
35+
error: the "with-" prefix in the feature name "with-owo" is redundant
36+
|
37+
= help: consider renaming the feature to "owo"
38+
39+
error: the "with_" prefix in the feature name "with_owo" is redundant
40+
|
41+
= help: consider renaming the feature to "owo"
42+
43+
error: could not compile `feature_name` (bin "feature_name") due to 10 previous errors

0 commit comments

Comments
 (0)