Fix duplicate unknown lint errors
This commit is contained in:
parent
24acc388da
commit
2e2bba94be
5 changed files with 7 additions and 31 deletions
|
@ -367,11 +367,11 @@ pub fn check_ast_crate<T: EarlyLintPass>(
|
||||||
krate,
|
krate,
|
||||||
EarlyLintPassObjects { lints: &mut passes[..] },
|
EarlyLintPassObjects { lints: &mut passes[..] },
|
||||||
buffered,
|
buffered,
|
||||||
pre_expansion,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for pass in &mut passes {
|
for (i, pass) in passes.iter_mut().enumerate() {
|
||||||
buffered =
|
buffered =
|
||||||
sess.prof.extra_verbose_generic_activity("run_lint", pass.name()).run(|| {
|
sess.prof.extra_verbose_generic_activity("run_lint", pass.name()).run(|| {
|
||||||
early_lint_crate(
|
early_lint_crate(
|
||||||
|
@ -380,7 +380,7 @@ pub fn check_ast_crate<T: EarlyLintPass>(
|
||||||
krate,
|
krate,
|
||||||
EarlyLintPassObjects { lints: slice::from_mut(pass) },
|
EarlyLintPassObjects { lints: slice::from_mut(pass) },
|
||||||
buffered,
|
buffered,
|
||||||
pre_expansion,
|
pre_expansion && i == 0,
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,11 +84,5 @@ error: lint `clippy::filter_map` has been removed: this lint has been replaced b
|
||||||
LL | #[warn(clippy::filter_map)]
|
LL | #[warn(clippy::filter_map)]
|
||||||
| ^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: lint `clippy::unstable_as_slice` has been removed: `Vec::as_slice` has been stabilized in 1.7
|
error: aborting due to 14 previous errors
|
||||||
--> $DIR/deprecated.rs:1:8
|
|
||||||
|
|
|
||||||
LL | #[warn(clippy::unstable_as_slice)]
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
error: aborting due to 15 previous errors
|
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,5 @@ error: lint `misaligned_transmute` has been removed: this lint has been split in
|
||||||
LL | #[warn(misaligned_transmute)]
|
LL | #[warn(misaligned_transmute)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: lint `unstable_as_slice` has been removed: `Vec::as_slice` has been stabilized in 1.7
|
error: aborting due to 3 previous errors
|
||||||
--> $DIR/deprecated_old.rs:1:8
|
|
||||||
|
|
|
||||||
LL | #[warn(unstable_as_slice)]
|
|
||||||
| ^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
error: aborting due to 4 previous errors
|
|
||||||
|
|
||||||
|
|
|
@ -24,11 +24,5 @@ error: lint `clippy::const_static_lifetime` has been renamed to `clippy::redunda
|
||||||
LL | #[warn(clippy::const_static_lifetime)]
|
LL | #[warn(clippy::const_static_lifetime)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::redundant_static_lifetimes`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::redundant_static_lifetimes`
|
||||||
|
|
||||||
error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`
|
error: aborting due to 4 previous errors
|
||||||
--> $DIR/rename.rs:10:9
|
|
||||||
|
|
|
||||||
LL | #![warn(clippy::cyclomatic_complexity)]
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity`
|
|
||||||
|
|
||||||
error: aborting due to 5 previous errors
|
|
||||||
|
|
||||||
|
|
|
@ -48,11 +48,5 @@ error: unknown lint: `clippy::const_static_lifetim`
|
||||||
LL | #[warn(clippy::const_static_lifetim)]
|
LL | #[warn(clippy::const_static_lifetim)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::redundant_static_lifetimes`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::redundant_static_lifetimes`
|
||||||
|
|
||||||
error: unknown lint: `clippy::All`
|
error: aborting due to 8 previous errors
|
||||||
--> $DIR/unknown_clippy_lints.rs:5:10
|
|
||||||
|
|
|
||||||
LL | #![allow(clippy::All)]
|
|
||||||
| ^^^^^^^^^^^ help: did you mean: `clippy::all`
|
|
||||||
|
|
||||||
error: aborting due to 9 previous errors
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue