Skip to content

Commit a3553f1

Browse files
committed
Migrate write.rs to a late pass
1 parent f07ee8a commit a3553f1

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;
@@ -430,7 +429,6 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
430429
})
431430
});
432431

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

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

0 commit comments

Comments
 (0)