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
When the compiler or a lint don't have a true solution to the issue they encountered, they can't use a suggestion, because those are supposed to be correct. But some situations (like "name is not defined or in scope") can't possibly know how to correctly fix the issue. I suggest to add another diagnostic called "guess" (the bikeshed may be of any colour).
The regular text-report won't be changed (so guess shows up as help like it does right now). But the json output would contain the guesses for processing by IDEs and tools like rustfix.
This way, suggestions can be automatically applied and guesses require user interaction to apply them.
/// A list of code snippets that could be used to replace the span,/// but may contain wrong suggestions. The user needs to take care/// to select the correct one or even ignore all of them.
guesses:Vec<String>,
The text was updated successfully, but these errors were encountered:
When the compiler or a lint don't have a true solution to the issue they encountered, they can't use a suggestion, because those are supposed to be correct. But some situations (like "name is not defined or in scope") can't possibly know how to correctly fix the issue. I suggest to add another diagnostic called "guess" (the bikeshed may be of any colour).
The regular text-report won't be changed (so
guess
shows up ashelp
like it does right now). But the json output would contain the guesses for processing by IDEs and tools like rustfix.This way, suggestions can be automatically applied and guesses require user interaction to apply them.
The json diagnostic structs will be extended this way:
The text was updated successfully, but these errors were encountered: