-
Notifications
You must be signed in to change notification settings - Fork 13.3k
"remove this" suggestions should take spacing into account #46614
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
I think this might make more sense over on https://github.com/rust-lang-nursery/rls-vscode or https://github.com/rust-lang-nursery/rls |
RLS is just plumbing through the suggestions we (the compiler) give it; any improvements would need to happen here. |
But it seems right at the diagnostic level that the |
That's a good point; I guess the deeper issue is that the compiler's "replace this span with this text" concept of a "suggestion" is limited? (On the other hand, I'm not eager to try to teach external tools about the AST ...) |
We do suggest inserting spaces, I don't see why we can't suggest removing them either. Especially in the mut case, we always know that it's preceded and followed by a space |
As a stop-gap measure we can use |
Include space in suggestion `mut` in bindings Fix #46614.
The text was updated successfully, but these errors were encountered: