You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E0412 ("type name is not in scope") and E0425 ("unresolved name")
convey essentially the same information to users - that an identifier
cannot be found in the current scope. The only difference was that
E0412 was used for type positions while E0425 was used for value/
expression positions. This distinction was not meaningful to users.
This commit merges E0412 into E0425, making E0425 the unified error
code for all unresolved name errors regardless of position.
Changes made:
- Updated error code mapping in rustc_resolve to use E0425 for both
type and expression positions
- Updated diagnostic handling code and comments to reflect the merge
- Marked E0412 documentation as no longer emitted, noting it has been
merged into E0425
- Enhanced E0425 documentation to include type resolution examples
- Updated all test files and expected outputs to use E0425 instead of
E0412
0 commit comments