@@ -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 EO425 .
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) ) ;
@@ -4342,15 +4342,15 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
43424342
43434343 // There are two different error messages user might receive at
43444344 // this point:
4345- // - E0412 cannot find type `{}` in this scope
4345+ // - E0425 cannot find `{}` in this scope
43464346 // - E0433 failed to resolve: use of undeclared type or module `{}`
43474347 //
43484348 // The first one is emitted for paths in type-position, and the
43494349 // latter one - for paths in expression-position.
43504350 //
43514351 // Thus (since we're in expression-position at this point), not to
43524352 // confuse the user, we want to keep the *message* from E0433 (so
4353- // `parent_err`), but we want *hints* from E0412 (so `err`).
4353+ // `parent_err`), but we want *hints* from the unified E0425 (so `err`).
43544354 //
43554355 // And that's what happens below - we're just mixing both messages
43564356 // into a single one.
0 commit comments