Remove module passes filtering
This commit is contained in:
@@ -70,18 +70,7 @@ macro_rules! declare_late_lint_pass {
|
||||
// for all the `check_*` methods.
|
||||
late_lint_methods!(declare_late_lint_pass, []);
|
||||
|
||||
impl LateLintPass<'_> for HardwiredLints {
|
||||
fn check_fn(
|
||||
&mut self,
|
||||
_: &LateContext<'_>,
|
||||
_: rustc_hir::intravisit::FnKind<'_>,
|
||||
_: &'_ rustc_hir::FnDecl<'_>,
|
||||
_: &'_ rustc_hir::Body<'_>,
|
||||
_: rustc_span::Span,
|
||||
_: rustc_span::def_id::LocalDefId,
|
||||
) {
|
||||
}
|
||||
}
|
||||
impl LateLintPass<'_> for HardwiredLints {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! expand_combined_late_lint_pass_method {
|
||||
@@ -121,7 +110,7 @@ macro_rules! declare_combined_late_lint_pass {
|
||||
|
||||
$v fn get_lints() -> $crate::LintVec {
|
||||
let mut lints = Vec::new();
|
||||
$(lints.extend_from_slice(&$pass::default().get_lints());)*
|
||||
$(lints.extend_from_slice(&$pass::lint_vec());)*
|
||||
lints
|
||||
}
|
||||
}
|
||||
@@ -236,7 +225,7 @@ macro_rules! declare_combined_early_lint_pass {
|
||||
|
||||
$v fn get_lints() -> $crate::LintVec {
|
||||
let mut lints = Vec::new();
|
||||
$(lints.extend_from_slice(&$pass::default().get_lints());)*
|
||||
$(lints.extend_from_slice(&$pass::lint_vec());)*
|
||||
lints
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user