File tree 5 files changed +7
-31
lines changed
src/tools/clippy/tests/ui
5 files changed +7
-31
lines changed Original file line number Diff line number Diff line change @@ -367,11 +367,11 @@ pub fn check_ast_crate<T: EarlyLintPass>(
367
367
krate,
368
368
EarlyLintPassObjects { lints : & mut passes[ ..] } ,
369
369
buffered,
370
- pre_expansion ,
370
+ false ,
371
371
) ;
372
372
}
373
373
} else {
374
- for pass in & mut passes {
374
+ for ( i , pass) in passes. iter_mut ( ) . enumerate ( ) {
375
375
buffered =
376
376
sess. prof . extra_verbose_generic_activity ( "run_lint" , pass. name ( ) ) . run ( || {
377
377
early_lint_crate (
@@ -380,7 +380,7 @@ pub fn check_ast_crate<T: EarlyLintPass>(
380
380
krate,
381
381
EarlyLintPassObjects { lints : slice:: from_mut ( pass) } ,
382
382
buffered,
383
- pre_expansion,
383
+ pre_expansion && i == 0 ,
384
384
)
385
385
} ) ;
386
386
}
Original file line number Diff line number Diff line change @@ -84,11 +84,5 @@ error: lint `clippy::filter_map` has been removed: this lint has been replaced b
84
84
LL | #[warn(clippy::filter_map)]
85
85
| ^^^^^^^^^^^^^^^^^^
86
86
87
- error: lint `clippy::unstable_as_slice` has been removed: `Vec::as_slice` has been stabilized in 1.7
88
- --> $DIR/deprecated.rs:1:8
89
- |
90
- LL | #[warn(clippy::unstable_as_slice)]
91
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
92
-
93
- error: aborting due to 15 previous errors
87
+ error: aborting due to 14 previous errors
94
88
Original file line number Diff line number Diff line change @@ -18,11 +18,5 @@ error: lint `misaligned_transmute` has been removed: this lint has been split in
18
18
LL | #[warn(misaligned_transmute)]
19
19
| ^^^^^^^^^^^^^^^^^^^^
20
20
21
- error: lint `unstable_as_slice` has been removed: `Vec::as_slice` has been stabilized in 1.7
22
- --> $DIR/deprecated_old.rs:1:8
23
- |
24
- LL | #[warn(unstable_as_slice)]
25
- | ^^^^^^^^^^^^^^^^^
26
-
27
- error: aborting due to 4 previous errors
21
+ error: aborting due to 3 previous errors
28
22
Original file line number Diff line number Diff line change @@ -24,11 +24,5 @@ error: lint `clippy::const_static_lifetime` has been renamed to `clippy::redunda
24
24
LL | #[warn(clippy::const_static_lifetime)]
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::redundant_static_lifetimes`
26
26
27
- error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`
28
- --> $DIR/rename.rs:10:9
29
- |
30
- LL | #![warn(clippy::cyclomatic_complexity)]
31
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity`
32
-
33
- error: aborting due to 5 previous errors
27
+ error: aborting due to 4 previous errors
34
28
Original file line number Diff line number Diff line change @@ -48,11 +48,5 @@ error: unknown lint: `clippy::const_static_lifetim`
48
48
LL | #[warn(clippy::const_static_lifetim)]
49
49
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::redundant_static_lifetimes`
50
50
51
- error: unknown lint: `clippy::All`
52
- --> $DIR/unknown_clippy_lints.rs:5:10
53
- |
54
- LL | #![allow(clippy::All)]
55
- | ^^^^^^^^^^^ help: did you mean: `clippy::all`
56
-
57
- error: aborting due to 9 previous errors
51
+ error: aborting due to 8 previous errors
58
52
You can’t perform that action at this time.
0 commit comments