-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Implement missing members introduces a \
before the curly braces of functions of a trait
#16607
Comments
Previous version does not have the issue, I've reverted for now because it's not usable enough as is |
cc @DropDemBits |
Same happens with "Extract into function". Every generated curly brace gets preceded with a backslash. Maybe related after a quick peek: 1d8ed34 |
Same is happening here, everything gets a \ |
The latest vscode nightly extension ( |
…-curly, r=Veykril fix: Don't add `\` before `{` Fixes #16607 for `{`. The `}` case is already fixed by #16475. The [LSP snippet grammar](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax) only specifies that `$`, `}`, and `\` can be escaped with backslashes, but not `{`.
Just encountered this as well in VSCode. Confirming that switching to the current pre-release of the rust-analyzer extension and reloading fixes it. |
rust-analyzer version: rust-analyzer version: 0.3.1850-standalone in VSCode
rustc version: rustc 1.78.0-nightly (2bf78d12d 2024-02-18)
relevant settings: nothing notable
Quick fix tooltip (
ctrl + ;
in my case) -> implement missing membersgets me
which the compiler (and rust analyzer) obviously don't like
expected:
Cheers
The text was updated successfully, but these errors were encountered: