Skip to content

Parameter completion can include incorrect , #12016

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
jonas-schievink opened this issue Apr 17, 2022 · 0 comments · Fixed by #12040
Closed

Parameter completion can include incorrect , #12016

jonas-schievink opened this issue Apr 17, 2022 · 0 comments · Fixed by #12040
Labels
A-completion autocompletion C-bug Category: bug S-actionable Someone could pick this issue up and work on it right now

Comments

@jonas-schievink
Copy link
Contributor

struct S;

impl S {
    fn f(&mut self, mut callback: ()) {}

    fn g(&mut self, mut cal$0)
}

Here we suggest , mut callback: (), which results in this once applied:

fn g(&mut self, mut , mut callback: ())
@jonas-schievink jonas-schievink added A-completion autocompletion S-actionable Someone could pick this issue up and work on it right now C-bug Category: bug labels Apr 17, 2022
@bors bors closed this as completed in 24f9209 Apr 21, 2022
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 S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant