Skip to content

Commit c638cce

Browse files
committed
Migrate write.rs to a late pass
1 parent dc5423a commit c638cce

17 files changed

+309
-747
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ extern crate rustc_lint;
3838
extern crate rustc_middle;
3939
extern crate rustc_mir_dataflow;
4040
extern crate rustc_parse;
41-
extern crate rustc_parse_format;
4241
extern crate rustc_session;
4342
extern crate rustc_span;
4443
extern crate rustc_target;
@@ -429,7 +428,6 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
429428
})
430429
});
431430

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

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

0 commit comments

Comments
 (0)