Make exhaustive_enums a late pass

This commit is contained in:
Manish Goregaokar
2021-01-21 13:31:15 -08:00
parent f1ab3024b2
commit dc93188805
2 changed files with 5 additions and 5 deletions

View File

@@ -1098,7 +1098,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
store.register_late_pass(|| box eval_order_dependence::EvalOrderDependence);
store.register_late_pass(|| box missing_doc::MissingDoc::new());
store.register_late_pass(|| box missing_inline::MissingInline);
store.register_early_pass(move || box exhaustive_enums::ExhaustiveEnums);
store.register_late_pass(move || box exhaustive_enums::ExhaustiveEnums);
store.register_late_pass(|| box if_let_some_result::OkIfLet);
store.register_late_pass(|| box partialeq_ne_impl::PartialEqNeImpl);
store.register_late_pass(|| box unused_io_amount::UnusedIoAmount);