Skip to content

Commit c0a683a

Browse files
committed
Make rustc internal lints per module.
1 parent 7c34f1a commit c0a683a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

compiler/rustc_lint/src/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -506,20 +506,20 @@ fn register_internals(store: &mut LintStore) {
506506
store.register_lints(&LintPassImpl::get_lints());
507507
store.register_early_pass(|| Box::new(LintPassImpl));
508508
store.register_lints(&DefaultHashTypes::get_lints());
509-
store.register_late_pass(|_| Box::new(DefaultHashTypes));
509+
store.register_late_mod_pass(|_| Box::new(DefaultHashTypes));
510510
store.register_lints(&QueryStability::get_lints());
511-
store.register_late_pass(|_| Box::new(QueryStability));
511+
store.register_late_mod_pass(|_| Box::new(QueryStability));
512512
store.register_lints(&ExistingDocKeyword::get_lints());
513-
store.register_late_pass(|_| Box::new(ExistingDocKeyword));
513+
store.register_late_mod_pass(|_| Box::new(ExistingDocKeyword));
514514
store.register_lints(&TyTyKind::get_lints());
515-
store.register_late_pass(|_| Box::new(TyTyKind));
515+
store.register_late_mod_pass(|_| Box::new(TyTyKind));
516516
store.register_lints(&Diagnostics::get_lints());
517517
store.register_early_pass(|| Box::new(Diagnostics));
518-
store.register_late_pass(|_| Box::new(Diagnostics));
518+
store.register_late_mod_pass(|_| Box::new(Diagnostics));
519519
store.register_lints(&BadOptAccess::get_lints());
520-
store.register_late_pass(|_| Box::new(BadOptAccess));
520+
store.register_late_mod_pass(|_| Box::new(BadOptAccess));
521521
store.register_lints(&PassByValue::get_lints());
522-
store.register_late_pass(|_| Box::new(PassByValue));
522+
store.register_late_mod_pass(|_| Box::new(PassByValue));
523523
// FIXME(davidtwco): deliberately do not include `UNTRANSLATABLE_DIAGNOSTIC` and
524524
// `DIAGNOSTIC_OUTSIDE_OF_IMPL` here because `-Wrustc::internal` is provided to every crate and
525525
// these lints will trigger all of the time - change this once migration to diagnostic structs

0 commit comments

Comments
 (0)