@@ -506,20 +506,20 @@ fn register_internals(store: &mut LintStore) {
506
506
store. register_lints ( & LintPassImpl :: get_lints ( ) ) ;
507
507
store. register_early_pass ( || Box :: new ( LintPassImpl ) ) ;
508
508
store. register_lints ( & DefaultHashTypes :: get_lints ( ) ) ;
509
- store. register_late_pass ( |_| Box :: new ( DefaultHashTypes ) ) ;
509
+ store. register_late_mod_pass ( |_| Box :: new ( DefaultHashTypes ) ) ;
510
510
store. register_lints ( & QueryStability :: get_lints ( ) ) ;
511
- store. register_late_pass ( |_| Box :: new ( QueryStability ) ) ;
511
+ store. register_late_mod_pass ( |_| Box :: new ( QueryStability ) ) ;
512
512
store. register_lints ( & ExistingDocKeyword :: get_lints ( ) ) ;
513
- store. register_late_pass ( |_| Box :: new ( ExistingDocKeyword ) ) ;
513
+ store. register_late_mod_pass ( |_| Box :: new ( ExistingDocKeyword ) ) ;
514
514
store. register_lints ( & TyTyKind :: get_lints ( ) ) ;
515
- store. register_late_pass ( |_| Box :: new ( TyTyKind ) ) ;
515
+ store. register_late_mod_pass ( |_| Box :: new ( TyTyKind ) ) ;
516
516
store. register_lints ( & Diagnostics :: get_lints ( ) ) ;
517
517
store. register_early_pass ( || Box :: new ( Diagnostics ) ) ;
518
- store. register_late_pass ( |_| Box :: new ( Diagnostics ) ) ;
518
+ store. register_late_mod_pass ( |_| Box :: new ( Diagnostics ) ) ;
519
519
store. register_lints ( & BadOptAccess :: get_lints ( ) ) ;
520
- store. register_late_pass ( |_| Box :: new ( BadOptAccess ) ) ;
520
+ store. register_late_mod_pass ( |_| Box :: new ( BadOptAccess ) ) ;
521
521
store. register_lints ( & PassByValue :: get_lints ( ) ) ;
522
- store. register_late_pass ( |_| Box :: new ( PassByValue ) ) ;
522
+ store. register_late_mod_pass ( |_| Box :: new ( PassByValue ) ) ;
523
523
// FIXME(davidtwco): deliberately do not include `UNTRANSLATABLE_DIAGNOSTIC` and
524
524
// `DIAGNOSTIC_OUTSIDE_OF_IMPL` here because `-Wrustc::internal` is provided to every crate and
525
525
// these lints will trigger all of the time - change this once migration to diagnostic structs
0 commit comments