Follow review comments (optimize the filtering)
This commit is contained in:
parent
edc6577627
commit
71b4d108c7
16 changed files with 276 additions and 151 deletions
|
@ -20,6 +20,7 @@
|
|||
//! If you define a new `LateLintPass`, you will also need to add it to the
|
||||
//! `late_lint_methods!` invocation in `lib.rs`.
|
||||
|
||||
use std::default::Default;
|
||||
use std::fmt::Write;
|
||||
|
||||
use ast::token::TokenKind;
|
||||
|
@ -73,12 +74,10 @@ use crate::{
|
|||
EarlyContext, EarlyLintPass, LateContext, LateLintPass, Level, LintContext,
|
||||
fluent_generated as fluent,
|
||||
};
|
||||
|
||||
use std::default::Default;
|
||||
use std::fmt::Write;
|
||||
// use std::fmt::Write;
|
||||
|
||||
// hardwired lints from rustc_lint_defs
|
||||
pub use rustc_session::lint::builtin::*;
|
||||
// pub use rustc_session::lint::builtin::*;
|
||||
|
||||
declare_lint! {
|
||||
/// The `while_true` lint detects `while true { }`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue