@@ -622,7 +622,7 @@ impl PathSource<'_, '_, '_> {
622622 ( PathSource :: Trait ( _) , true ) => E0404 ,
623623 ( PathSource :: Trait ( _) , false ) => E0405 ,
624624 ( PathSource :: Type | PathSource :: DefineOpaques , true ) => E0573 ,
625- ( PathSource :: Type | PathSource :: DefineOpaques , false ) => E0412 ,
625+ ( PathSource :: Type | PathSource :: DefineOpaques , false ) => E0425 ,
626626 ( PathSource :: Struct ( _) , true ) => E0574 ,
627627 ( PathSource :: Struct ( _) , false ) => E0422 ,
628628 ( PathSource :: Expr ( ..) , true ) | ( PathSource :: Delegation , true ) => E0423 ,
@@ -3158,7 +3158,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
31583158 result
31593159 }
31603160
3161- /// When evaluating a `trait` use its associated types' idents for suggestions in E0412 .
3161+ /// When evaluating a `trait` use its associated types' idents for suggestions in E0425 .
31623162 fn resolve_trait_items ( & mut self , trait_items : & ' ast [ Box < AssocItem > ] ) {
31633163 let trait_assoc_items =
31643164 replace ( & mut self . diag_metadata . current_trait_assoc_items , Some ( trait_items) ) ;
@@ -4363,15 +4363,15 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
43634363
43644364 // There are two different error messages user might receive at
43654365 // this point:
4366- // - E0412 cannot find type `{}` in this scope
4366+ // - E0425 cannot find type `{}` in this scope
43674367 // - E0433 failed to resolve: use of undeclared type or module `{}`
43684368 //
43694369 // The first one is emitted for paths in type-position, and the
43704370 // latter one - for paths in expression-position.
43714371 //
43724372 // Thus (since we're in expression-position at this point), not to
43734373 // confuse the user, we want to keep the *message* from E0433 (so
4374- // `parent_err`), but we want *hints* from E0412 (so `err`).
4374+ // `parent_err`), but we want *hints* from E0425 (so `err`).
43754375 //
43764376 // And that's what happens below - we're just mixing both messages
43774377 // into a single one.
0 commit comments