Extend invalid keyword usage help diagnostic #101627
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: link
The current output is:
There are multiple similar issues and all of them are merged (#99903 #99751 #100140). Hence, I think we should extend such behavior to all relevant rust keywords. Additional details are listed below:
module
->mod
constant
->const
immutable
->const
implement
->impl
external
->extern
mutable
->mut
Any of the wrong keywords on the lhs that is used in place of the right one on the rhs, should suggest changing said invalid keyword with the respective valid ones.
The text was updated successfully, but these errors were encountered: