Skip to content

Commit

Permalink
Bless and update tests to how ui_test likes them
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 28, 2023
1 parent 195d0a3 commit b674f5d
Show file tree
Hide file tree
Showing 1,553 changed files with 14,917 additions and 12,197 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/obfuscated_if_else.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// run-rustfix
//@run-rustfix

use super::OBFUSCATED_IF_ELSE;
use clippy_utils::{diagnostics::span_lint_and_sugg, source::snippet_with_applicability};
Expand Down
5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_common_metadata/fail/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
2 changes: 1 addition & 1 deletion tests/ui-cargo/cargo_common_metadata/fail/src/main.rs
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 tests/ui-cargo/cargo_common_metadata/fail/src/main.stderr

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
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 tests/ui-cargo/cargo_common_metadata/fail_publish/src/main.stderr

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
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.

5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_common_metadata/pass/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
2 changes: 1 addition & 1 deletion tests/ui-cargo/cargo_common_metadata/pass/src/main.rs
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() {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
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() {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
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() {}
5 changes: 5 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,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
22 changes: 0 additions & 22 deletions tests/ui-cargo/cargo_rust_version/fail_both_diff/src/main.stderr

This file was deleted.

5 changes: 5 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,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
20 changes: 0 additions & 20 deletions tests/ui-cargo/cargo_rust_version/fail_both_same/src/main.stderr

This file was deleted.

5 changes: 5 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,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
20 changes: 0 additions & 20 deletions tests/ui-cargo/cargo_rust_version/fail_cargo/src/main.stderr

This file was deleted.

5 changes: 5 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,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
20 changes: 0 additions & 20 deletions tests/ui-cargo/cargo_rust_version/fail_clippy/src/main.stderr

This file was deleted.

5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_rust_version/fail_file_attr/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
20 changes: 0 additions & 20 deletions tests/ui-cargo/cargo_rust_version/fail_file_attr/src/main.stderr

This file was deleted.

5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_rust_version/pass_both_same/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_rust_version/pass_cargo/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_rust_version/pass_clippy/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_rust_version/pass_file_attr/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
5 changes: 5 additions & 0 deletions tests/ui-cargo/cargo_rust_version/warn_both_diff/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.

This file was deleted.

5 changes: 5 additions & 0 deletions tests/ui-cargo/duplicate_mod/fail/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
53 changes: 0 additions & 53 deletions tests/ui-cargo/duplicate_mod/fail/src/main.stderr

This file was deleted.

5 changes: 5 additions & 0 deletions tests/ui-cargo/feature_name/fail/Cargo.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: unexpected argument '--out-dir' found

Usage: cargo [+toolchain] [OPTIONS] [COMMAND]

For more information, try '--help'.
2 changes: 1 addition & 1 deletion tests/ui-cargo/feature_name/fail/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-flags: --crate-name=feature_name
//@compile-flags: --crate-name=feature_name
#![warn(clippy::redundant_feature_names)]
#![warn(clippy::negative_feature_names)]

Expand Down
Loading

0 comments on commit b674f5d

Please sign in to comment.