Stream: t-compiler/rust-analyzer

Topic: incorrect completion with self + references


Riccardo D'Ambrosio (Mar 27 2021 at 21:17, on Zulip):

Hello! RA nicely reccomends &foo over foo if a parameter to a func expects a reference, but sadly it kind of breaks when you use self.foo and it resolves to self.&foo which is less than ideal. I wanted to know if this is a known bug before i submit a possibly duplicate issue :smiley:

Lukas Wirth (Mar 27 2021 at 21:18, on Zulip):

Yep thats already known and afaik being worked on :smile:

Lukas Wirth (Mar 27 2021 at 21:18, on Zulip):

https://github.com/rust-analyzer/rust-analyzer/issues/8058

Riccardo D'Ambrosio (Mar 27 2021 at 21:49, on Zulip):

thanks :smile:

Josh Mcguigan (Mar 27 2021 at 23:05, on Zulip):

And a temporary “fix” has been implemented in https://github.com/rust-analyzer/rust-analyzer/pull/8142

Last update: Jul 24 2021 at 19:30UTC