Remove module passes filtering
This commit is contained in:
parent
71b4d108c7
commit
637d5cc56f
16 changed files with 109 additions and 212 deletions
|
@ -20,7 +20,6 @@
|
|||
//! 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;
|
||||
|
@ -74,11 +73,6 @@ use crate::{
|
|||
EarlyContext, EarlyLintPass, LateContext, LateLintPass, Level, LintContext,
|
||||
fluent_generated as fluent,
|
||||
};
|
||||
// use std::fmt::Write;
|
||||
|
||||
// hardwired lints from rustc_lint_defs
|
||||
// pub use rustc_session::lint::builtin::*;
|
||||
|
||||
declare_lint! {
|
||||
/// The `while_true` lint detects `while true { }`.
|
||||
///
|
||||
|
@ -247,7 +241,7 @@ declare_lint! {
|
|||
UNSAFE_CODE,
|
||||
Allow,
|
||||
"usage of `unsafe` code and other potentially unsound constructs",
|
||||
[loadbearing: true]
|
||||
@eval_always = true
|
||||
}
|
||||
|
||||
declare_lint_pass!(UnsafeCode => [UNSAFE_CODE]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue