rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

in function body use `impl for`, expand to `for loop`

Open A4-Tacks opened this issue 1 year ago • 1 comments

rust-analyzer version: rust-analyzer 1.80.0 (05147895 2024-07-21)

rustc version: rustc 1.80.0 (051478957 2024-07-21)

editor or extension: Vim

code snippet to reproduce:

fn foo() {
    struct X;
    impl X fo { }
}

select completion list...

output:

fn foo() {
    struct X;
    impl X for  in  {
        
    } { }
}

expect:

fn foo() {
    struct X;
    impl X for  { }
}

A4-Tacks avatar Aug 04 '24 13:08 A4-Tacks

@rustbot claim

rami3l avatar Aug 30 '24 06:08 rami3l