-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Convert notes to helps in the compiler #18126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
My notes from the PR: I scanned the source for notes that might be candidates for help and found these:
... well, there are a lot. Some notes combine both contextual info and suggestions and might be separated:
|
I’m working on this, but I think we still need to further clarify what counts as a help message rather than a note. If something directly suggests the user to do something (e.g., |
Closes rust-lang#15273 (I did not find how to get the identifier in the message :/) Also creates the span_help! macro associated with rust-lang#18126
Closes #18126. At the moment this mostly only changes notes that are particularly help-oriented or directly suggest the user to do something to help messages, and does not change messages that simply explain an error message further. If it is decided that those messages should also be help messages, I can add them to this PR, but for now I’m excluding them as I believe that changing those messages might leave very few places where notes would be appropriate.
#16855 adds
span_help
andhelp
diagnostic types, distinct fromnote
. A significant number of notes are actually helpful suggestions and need to be converted.The text was updated successfully, but these errors were encountered: