Skip to content

Commit 40301d3

Browse files
committed
Migrate write.rs to a late pass
1 parent 8ae74da commit 40301d3

17 files changed

+308
-746
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;
@@ -428,7 +427,6 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
428427
})
429428
});
430429

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

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

0 commit comments

Comments
 (0)