File tree 3 files changed +2
-5
lines changed
3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ fn is_foo_fn(fn_kind: FnKind<'_>) -> bool {
414
414
415
415
Now we should also run the full test suite with ` cargo test ` . At this point
416
416
running ` cargo test ` should produce the expected output. Remember to run `cargo
417
- dev bless` to update the ` .stderr` file.
417
+ bless` to update the ` .stderr` file.
418
418
419
419
` cargo test ` (as opposed to ` cargo uitest ` ) will also ensure that our lint
420
420
implementation is not violating any Clippy lints itself.
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ edition = "2021"
6
6
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
7
8
8
[dependencies ]
9
- clap = { version = " 4.1.4" , features = [" derive" ] }
10
9
clippy_utils = { path = " ../clippy_utils" }
11
10
derive-new = " 0.5"
12
11
if_chain = " 1.0"
@@ -17,7 +16,6 @@ syn = { version = "2.0", features = ["full"] }
17
16
futures = " 0.3"
18
17
parking_lot = " 0.12"
19
18
tokio = { version = " 1" , features = [" io-util" ] }
20
- rustc-semver = " 1.1"
21
19
regex = " 1.5"
22
20
clippy_lints = { path = " ../clippy_lints" }
23
21
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn base_config(test_dir: &str) -> compiletest::Config {
24
24
mode : TestMode :: Yolo ,
25
25
stderr_filters : vec ! [ ] ,
26
26
stdout_filters : vec ! [ ] ,
27
- output_conflict_handling : if std :: env:: args ( ) . any ( |arg| arg == "--bless" ) {
27
+ output_conflict_handling : if var_os ( "BLESS" ) . is_some ( ) || env:: args ( ) . any ( |arg| arg == "--bless" ) {
28
28
compiletest:: OutputConflictHandling :: Bless
29
29
} else {
30
30
compiletest:: OutputConflictHandling :: Error ( "cargo test -- -- --bless" . into ( ) )
@@ -295,7 +295,6 @@ fn rustfix_coverage_known_exceptions_accuracy() {
295
295
let rs_path = Path :: new ( "tests/ui" ) . join ( filename) ;
296
296
assert ! ( rs_path. exists( ) , "`{}` does not exist" , rs_path. display( ) ) ;
297
297
let fixed_path = rs_path. with_extension ( "fixed" ) ;
298
- println ! ( "{}" , fixed_path. display( ) ) ;
299
298
assert ! ( !fixed_path. exists( ) , "`{}` exists" , fixed_path. display( ) ) ;
300
299
}
301
300
}
You can’t perform that action at this time.
0 commit comments