Skip to content

Completion raw_ident label fail #19694

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
A4-Tacks opened this issue Apr 25, 2025 · 1 comment · Fixed by #19699
Closed

Completion raw_ident label fail #19694

A4-Tacks opened this issue Apr 25, 2025 · 1 comment · Fixed by #19699
Labels
C-bug Category: bug

Comments

@A4-Tacks
Copy link
Contributor

rust-analyzer version: rust-analyzer 1.88.0-nightly (a15cce2 2025-04-17)

rustc version: rustc 1.88.0-nightly (a15cce269 2025-04-17)

editor or extension: VIM9.1 coc-rust-analyzer

code snippet to reproduce:

fn main() {
    'r#break: {
        break ';
    }
}

Cursor on line 3, before ;, click completion key

Image

Enter, output:

fn main() {
    'r#break: {
        break 'break;
    }
}

Expect output:

fn main() {
    'r#break: {
        break 'r#break;
    }
}
@A4-Tacks A4-Tacks added the C-bug Category: bug label Apr 25, 2025
@A4-Tacks
Copy link
Contributor Author

Rustfmt also has similar rust-lang/rustfmt#6550

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

Successfully merging a pull request may close this issue.

1 participant