Skip to content

Commit 237e168

Browse files
committed
Fix tests
1 parent ef02e3a commit 237e168

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

clippy_lints/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
914914
store.register_late_pass(|| box trait_bounds::TraitBounds);
915915
store.register_late_pass(|| box comparison_chain::ComparisonChain);
916916
store.register_late_pass(|| box mul_add::MulAddCheck);
917-
918917
store.register_early_pass(|| box reference::DerefAddrOf);
919918
store.register_early_pass(|| box reference::RefInDeref);
920919
store.register_early_pass(|| box double_parens::DoubleParens);
@@ -939,6 +938,8 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
939938
store.register_early_pass(|| box utils::internal_lints::ClippyLintsInternal);
940939
let p = conf.enum_variant_name_threshold;
941940
store.register_early_pass(move || box enum_variants::EnumVariantNames::new(p));
941+
store.register_late_pass(|| box unused_self::UnusedSelf);
942+
store.register_late_pass(|| box mutable_debug_assertion::DebugAssertWithMutCall);
942943

943944
store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![
944945
LintId::of(&arithmetic::FLOAT_ARITHMETIC),

clippy_lints/src/utils/internal_lints.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CompilerLintFunctions {
275275
}
276276
}
277277

278-
pub struct OuterExpnDataPass;
279-
280-
impl_lint_pass!(OuterExpnDataPass => [OUTER_EXPN_EXPN_DATA]);
278+
declare_lint_pass!(OuterExpnDataPass => [OUTER_EXPN_EXPN_DATA]);
281279

282280
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for OuterExpnDataPass {
283281
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr) {

tests/ui/lint_without_lint_pass.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ declare_clippy_lint! {
2222

2323
pub struct Pass;
2424
impl LintPass for Pass {
25-
fn get_lints(&self) -> LintArray {
26-
lint_array!(TEST_LINT_REGISTERED)
27-
}
28-
2925
fn name(&self) -> &'static str {
3026
"TEST_LINT"
3127
}

0 commit comments

Comments
 (0)