You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have talked with @lnicola and decided that it's better to create an issue for this. Both of them are working fine for structs but they have a few issues for enums.
Variant not being auto completed
Here, I wanted to do Self::Foo but as you can see Foo is missing from the list
Related #4650 (solves some of the issues in it if this is solved)
Here, self resolves to &A and if I try to type Self, I don't get any completions at all. (Also weirdly I get Some which should not because self does not resolve to an option)
Ideally, I want to see both Self and Self::Foo in the completion list. (Because if we type A, we get both A and A::Foo)
Related #6404
Related #6550 (Fixing that should solve a part of this, but not fully)
The text was updated successfully, but these errors were encountered:
lnicola
added
A-ty
type system / type inference / traits / method resolution
S-actionable
Someone could pick this issue up and work on it right now
A-completion
autocompletion
and removed
A-ty
type system / type inference / traits / method resolution
labels
Nov 14, 2020
6960: Show enum variant on Self qualified paths r=matklad a=Veykril
Fixes first part of #6549Fixes#6550
Co-authored-by: Lukas Wirth <[email protected]>
I have talked with @lnicola and decided that it's better to create an issue for this. Both of them are working fine for structs but they have a few issues for enums.
Variant not being auto completedHere, I wanted to doSelf::Foo
but as you can seeFoo
is missing from the listRelated #4650 (solves some of the issues in it if this is solved)Fixed in #6960
Self not found in match
Here,
self
resolves to&A
and if I try to typeSelf
, I don't get any completions at all. (Also weirdly I getSome
which should not becauseself
does not resolve to an option)Ideally, I want to see both
Self
andSelf::Foo
in the completion list. (Because if we typeA
, we get bothA
andA::Foo
)Related #6404
Related #6550 (Fixing that should solve a part of this, but not fully)
The text was updated successfully, but these errors were encountered: