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

in function body use impl for, expand to for loop #17787

Closed
A4-Tacks opened this issue Aug 4, 2024 · 1 comment · Fixed by #18005
Closed

in function body use impl for, expand to for loop #17787

A4-Tacks opened this issue Aug 4, 2024 · 1 comment · Fixed by #18005
Assignees
Labels
A-completion autocompletion C-bug Category: bug E-easy

Comments

@A4-Tacks
Copy link

A4-Tacks commented Aug 4, 2024

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 A4-Tacks added the C-bug Category: bug label Aug 4, 2024
@Veykril Veykril added the A-completion autocompletion label Aug 4, 2024
@Veykril Veykril added the E-easy label Aug 27, 2024
@rami3l
Copy link
Member

rami3l commented Aug 30, 2024

@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 E-easy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants