Skip to content

Commit 85ccd7c

Browse files
committed
Migrate write.rs to a late pass
1 parent fe7254f commit 85ccd7c

17 files changed

+309
-752
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ extern crate rustc_lint;
3939
extern crate rustc_middle;
4040
extern crate rustc_mir_dataflow;
4141
extern crate rustc_parse;
42-
extern crate rustc_parse_format;
4342
extern crate rustc_session;
4443
extern crate rustc_span;
4544
extern crate rustc_target;
@@ -431,7 +430,6 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
431430
})
432431
});
433432

434-
store.register_pre_expansion_pass(|| Box::new(write::Write::default()));
435433
store.register_pre_expansion_pass(move || Box::new(attrs::EarlyAttributes { msrv }));
436434
}
437435

@@ -868,6 +866,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
868866
ignore_publish: cargo_ignore_publish,
869867
})
870868
});
869+
store.register_late_pass(|| Box::new(write::Write::default()));
871870
store.register_early_pass(|| Box::new(crate_in_macro_def::CrateInMacroDef));
872871
// add lints here, do not remove this comment, it's used in `new_lint`
873872
}

0 commit comments

Comments
 (0)