Skip to content

Commit b674f5d

Browse files
committed
Bless and update tests to how ui_test likes them
1 parent 195d0a3 commit b674f5d

File tree

1,553 files changed

+14917
-12197
lines changed

Some content is hidden

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

1,553 files changed

+14917
-12197
lines changed

clippy_lints/src/methods/obfuscated_if_else.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run-rustfix
1+
//@run-rustfix
22

33
use super::OBFUSCATED_IF_ELSE;
44
use clippy_utils::{diagnostics::span_lint_and_sugg, source::snippet_with_applicability};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --crate-name=cargo_common_metadata
1+
//@compile-flags: --crate-name=cargo_common_metadata
22
#![warn(clippy::cargo_common_metadata)]
33

44
fn main() {}

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

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --crate-name=cargo_common_metadata
1+
//@compile-flags: --crate-name=cargo_common_metadata
22
#![warn(clippy::cargo_common_metadata)]
33

44
fn main() {}

tests/ui-cargo/cargo_common_metadata/fail_publish/src/main.stderr

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --crate-name=cargo_common_metadata
1+
//@compile-flags: --crate-name=cargo_common_metadata
22
#![warn(clippy::cargo_common_metadata)]
33

44
fn main() {}

tests/ui-cargo/cargo_common_metadata/fail_publish_true/src/main.stderr

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --crate-name=cargo_common_metadata
1+
//@compile-flags: --crate-name=cargo_common_metadata
22
#![warn(clippy::cargo_common_metadata)]
33

44
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --crate-name=cargo_common_metadata
1+
//@compile-flags: --crate-name=cargo_common_metadata
22
#![warn(clippy::cargo_common_metadata)]
33

44
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --crate-name=cargo_common_metadata
1+
//@compile-flags: --crate-name=cargo_common_metadata
22
#![warn(clippy::cargo_common_metadata)]
33

44
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

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,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

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,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

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,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

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

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

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
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

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

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

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,5 @@
1+
error: unexpected argument '--out-dir' found
2+
3+
Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
4+
5+
For more information, try '--help'.

tests/ui-cargo/feature_name/fail/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --crate-name=feature_name
1+
//@compile-flags: --crate-name=feature_name
22
#![warn(clippy::redundant_feature_names)]
33
#![warn(clippy::negative_feature_names)]
44

0 commit comments

Comments
 (0)