- Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.WG-diagnosticsWorking group: DiagnosticsWorking group: Diagnostics
Description
"did you mean" should first try to find the name with different capitalization. A case I just found
error[E0531]: cannot find tuple struct/variant `TyUInt` in module `ty` --> src/librustc/infer/error_reporting/mod.rs:680:44 | 680 | (&ty::TyRef(_, ref tnm1), &ty::TyUInt(_)) | | ^^^^^^ did you mean `TyInt`? There's a ty::TyUint, which confused me for a few seconds until I noticed the i->I typo and the suggestion hindered instead of helping.
crumblingstatue, mark-i-m and scottmcm
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.WG-diagnosticsWorking group: DiagnosticsWorking group: Diagnostics