Skip to content

Commit 5bd97ac

Browse files
committed
Update tests
1 parent 514b6d0 commit 5bd97ac

File tree

258 files changed

+1735
-1058
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

+1735
-1058
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
Lines changed: 21 additions & 0 deletions
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

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
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

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
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

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
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

0 commit comments

Comments
 (0)