-
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.
Update the ui tests to how
ui_test
likes them
- Loading branch information
Showing
1,568 changed files
with
14,913 additions
and
11,653 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
warning: package `cargo_common_metadata_fail` is missing `package.description` metadata | ||
| | ||
note: the lint level is defined here | ||
--> src/main.rs:2:9 | ||
| | ||
2 | #![warn(clippy::cargo_common_metadata)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: package `cargo_common_metadata_fail` is missing `either package.license or package.license_file` metadata | ||
|
||
warning: package `cargo_common_metadata_fail` is missing `package.repository` metadata | ||
|
||
warning: package `cargo_common_metadata_fail` is missing `package.readme` metadata | ||
|
||
warning: package `cargo_common_metadata_fail` is missing `package.keywords` metadata | ||
|
||
warning: package `cargo_common_metadata_fail` is missing `package.categories` metadata | ||
|
||
warning: `cargo_common_metadata_fail` (bin "cargo_common_metadata_fail") generated 6 warnings | ||
Finished dev [unoptimized + debuginfo] target(s) |
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,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
//@compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
tests/ui-cargo/cargo_common_metadata/fail_publish/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,20 @@ | ||
warning: package `cargo_common_metadata_fail_publish` is missing `package.description` metadata | ||
| | ||
note: the lint level is defined here | ||
--> src/main.rs:2:9 | ||
| | ||
2 | #![warn(clippy::cargo_common_metadata)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: package `cargo_common_metadata_fail_publish` is missing `either package.license or package.license_file` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish` is missing `package.repository` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish` is missing `package.readme` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish` is missing `package.keywords` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish` is missing `package.categories` metadata | ||
|
||
warning: `cargo_common_metadata_fail_publish` (bin "cargo_common_metadata_fail_publish") generated 6 warnings | ||
Finished dev [unoptimized + debuginfo] target(s) |
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,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
//@compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
16 changes: 0 additions & 16 deletions
16
tests/ui-cargo/cargo_common_metadata/fail_publish/src/main.stderr
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
tests/ui-cargo/cargo_common_metadata/fail_publish_true/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,20 @@ | ||
warning: package `cargo_common_metadata_fail_publish_true` is missing `package.description` metadata | ||
| | ||
note: the lint level is defined here | ||
--> src/main.rs:2:9 | ||
| | ||
2 | #![warn(clippy::cargo_common_metadata)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: package `cargo_common_metadata_fail_publish_true` is missing `either package.license or package.license_file` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish_true` is missing `package.repository` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish_true` is missing `package.readme` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish_true` is missing `package.keywords` metadata | ||
|
||
warning: package `cargo_common_metadata_fail_publish_true` is missing `package.categories` metadata | ||
|
||
warning: `cargo_common_metadata_fail_publish_true` (bin "cargo_common_metadata_fail_publish_true") generated 6 warnings | ||
Finished dev [unoptimized + debuginfo] target(s) |
2 changes: 1 addition & 1 deletion
2
tests/ui-cargo/cargo_common_metadata/fail_publish_true/src/main.rs
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,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
//@compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
16 changes: 0 additions & 16 deletions
16
tests/ui-cargo/cargo_common_metadata/fail_publish_true/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 @@ | ||
Finished dev [unoptimized + debuginfo] target(s) |
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,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
//@compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
1 change: 1 addition & 0 deletions
1
tests/ui-cargo/cargo_common_metadata/pass_publish_empty/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 @@ | ||
Finished dev [unoptimized + debuginfo] target(s) |
2 changes: 1 addition & 1 deletion
2
tests/ui-cargo/cargo_common_metadata/pass_publish_empty/src/main.rs
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,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
//@compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
1 change: 1 addition & 0 deletions
1
tests/ui-cargo/cargo_common_metadata/pass_publish_false/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 @@ | ||
Finished dev [unoptimized + debuginfo] target(s) |
2 changes: 1 addition & 1 deletion
2
tests/ui-cargo/cargo_common_metadata/pass_publish_false/src/main.rs
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,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
//@compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
22 changes: 22 additions & 0 deletions
22
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,22 @@ | ||
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` | ||
|
||
warning: `fail-both-diff` (bin "fail-both-diff") generated 1 warning | ||
error: could not compile `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` 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` 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` 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` 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.
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 @@ | ||
Finished dev [unoptimized + debuginfo] target(s) |
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 @@ | ||
Finished dev [unoptimized + debuginfo] target(s) |
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 @@ | ||
Finished dev [unoptimized + debuginfo] target(s) |
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 @@ | ||
Finished dev [unoptimized + debuginfo] target(s) |
4 changes: 4 additions & 0 deletions
4
tests/ui-cargo/cargo_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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.13.0` from `clippy.toml` | ||
|
||
warning: `warn-both-diff` (bin "warn-both-diff") generated 1 warning | ||
Finished dev [unoptimized + debuginfo] target(s) |
4 changes: 0 additions & 4 deletions
4
tests/ui-cargo/cargo_rust_version/warn_both_diff/src/main.stderr
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.