Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 26, 2023
1 parent de557e5 commit 55a8fa4
Show file tree
Hide file tree
Showing 258 changed files with 1,758 additions and 1,196 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error: package `cargo_common_metadata_fail` is missing `package.description` metadata
|
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
|
= note: `-D clippy::cargo-common-metadata` implied by `-D warnings`

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

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

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

error: aborting due to 6 previous errors

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

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

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

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

error: aborting due to 6 previous errors

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

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

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

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

error: aborting due to 6 previous errors

error: could not compile `cargo_common_metadata_fail_publish_true` (bin "cargo_common_metadata_fail_publish_true") due to 6 previous errors
21 changes: 21 additions & 0 deletions tests/ui-cargo/cargo_rust_version/fail_both_diff/Cargo.stderr
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 tests/ui-cargo/cargo_rust_version/fail_both_diff/src/main.stderr

This file was deleted.

19 changes: 19 additions & 0 deletions tests/ui-cargo/cargo_rust_version/fail_both_same/Cargo.stderr
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 tests/ui-cargo/cargo_rust_version/fail_both_same/src/main.stderr

This file was deleted.

19 changes: 19 additions & 0 deletions tests/ui-cargo/cargo_rust_version/fail_cargo/Cargo.stderr
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 tests/ui-cargo/cargo_rust_version/fail_cargo/src/main.stderr

This file was deleted.

19 changes: 19 additions & 0 deletions tests/ui-cargo/cargo_rust_version/fail_clippy/Cargo.stderr
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
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 tests/ui-cargo/cargo_rust_version/fail_file_attr/src/main.stderr

This file was deleted.

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

52 changes: 52 additions & 0 deletions tests/ui-cargo/duplicate_mod/fail/Cargo.stderr
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
53 changes: 0 additions & 53 deletions tests/ui-cargo/duplicate_mod/fail/src/main.stderr

This file was deleted.

43 changes: 43 additions & 0 deletions tests/ui-cargo/feature_name/fail/Cargo.stderr
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
Loading

0 comments on commit 55a8fa4

Please sign in to comment.