Skip to content

All braces escaped in generated code #16644

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

Closed
ronnodas opened this issue Feb 23, 2024 · 1 comment
Closed

All braces escaped in generated code #16644

ronnodas opened this issue Feb 23, 2024 · 1 comment
Labels
C-bug Category: bug

Comments

@ronnodas
Copy link

Whenever I use an assist that inserts some code, all the braces in it are escaped with slashes. For example, using "Generate foo function" on let bar = foo(); produces:

fn foo() -> _ \{
    todo!()
\}

rust-analyzer version: 0.3.1850-standalone

rustc version: rustc 1.76.0 (07dca489a 2024-02-04)

relevant settings: using VS Code extension, not sure which setting could affect this

@ronnodas ronnodas added the C-bug Category: bug label Feb 23, 2024
@Young-Flash
Copy link
Member

fixed in #16618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants