Suggest similar names for types, macros and modules #96625
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: Playground link
The current output is:
Ideally the output should look like:
Currently, when a crate, function, method, or enum variant is not found, similar-named items will be shown as hints. However, when a type, module, or macro is misspelled, the same kind of hints are not shown. I particularly think mistakes involving capitalisation should be considered. This issue came about with a friend I was introducing to rust, and I was hoping the compiler would suggest correcting
string
toString
.The text was updated successfully, but these errors were encountered: