Skip to content
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

The posifix snippets ignored mut #18155

Closed
A4-Tacks opened this issue Sep 20, 2024 · 1 comment · Fixed by #18161
Closed

The posifix snippets ignored mut #18155

A4-Tacks opened this issue Sep 20, 2024 · 1 comment · Fixed by #18161
Assignees
Labels
A-completion autocompletion C-bug Category: bug

Comments

@A4-Tacks
Copy link

A4-Tacks commented Sep 20, 2024

rust-analyzer version: rust-analyzer 1.82.0-nightly (1f12b9b0 2024-08-27)

rustc version: rustc 1.82.0-nightly (1f12b9b0f 2024-08-27)

editor or extension: Vim 9.1 coc-rust-analyzer

code snippet to reproduce:

fn main() {
    let mut x = &mut 2;
    &mut x;
    &mut *x;
}

use .call snippets in x;:

fn main() {
    let mut x = &mut 2;
    (&x);
    &mut *(x);
}

expect code:

fn main() {
    let mut x = &mut 2;
    (&mut x);
    (&mut *x);
}
@A4-Tacks A4-Tacks added the C-bug Category: bug label Sep 20, 2024
@DropDemBits DropDemBits added the A-completion autocompletion label Sep 21, 2024
@ChayimFriedman2
Copy link
Contributor

@rustbot claim

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

Successfully merging a pull request may close this issue.

3 participants