We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a is of type A:
a
A
A::Foo
F
But as you can see from above image, if a is of type &A (same issue with &mut A):
&A
&mut A
The text was updated successfully, but these errors were encountered:
Self
self
Relevant code should be here https://github.com/rust-analyzer/rust-analyzer/blob/e8c803937ce23a6cf74583ad03f9868869c7eea1/crates/completion/src/completions/unqualified_path.rs#L42-L44
The problem is that the call to as_adt will fail if the expected type is behind a reference.
as_adt
Sorry, something went wrong.
ee06096
Successfully merging a pull request may close this issue.
If
a
is of typeA
:A
, I getA
andA::Foo
F
, I getA::Foo
But as you can see from above image, if
a
is of type&A
(same issue with&mut A
):A
, I getA
F
, I get neitherThe text was updated successfully, but these errors were encountered: