-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No autocompletion for inherent_associated_types
nightly feature
#16240
Comments
The feature is not supported at all in rust-analyzer right now~~, and iirc to implement it we need the new trait solver (or chalk support for it)~~ actually that was assoc type default, unsure about this feature |
Hey @Veykril, thanks for the quick response. Are there any relevant issues you could forward me to so I can keep up to date with progress being made on that trait solver you mentioned and/or chalk? Should I go ahead and close this issue or do you want to keep it open until the feature is supported? |
We can keep this open I don't think we have an issue tracking this feature here yet. |
inherent_associated_types
nightly feature
Yeah, I feel like this shouldn't be particularly hard to support -- there's really not much difference between impl Foo {
type Bar = u32;
} and type FooBar = u32; , is there? |
Just to be clear: It just doesn't resolve (for auto completion & type inference) when a |
As stated above: my LSP doens't give auto completion for a constant that's typed by the inherent_associated_types feature.
Rustc does compile the program when using the feature.
UPDATE: After some testing I found that this only happens for
const
values and not variables defined withlet
(regardless of scope).Code example
My repo is public so if my code examples aren't clear enough you can always take a look:
Current commit when writing this issue. (Bumping the nightly version from 2023-11-19 to 2023-12-29 has nothing to do with this issue).
Toolchain versions
rust-analyzer
$ rust-analyzer --version --verbose
rust-analyzer 1.77.0-nightly (fb5ed72 2023-12-28)
rustc
$ rustc --version --verbose
rustc 1.77.0-nightly (fb5ed726f 2023-12-28)
binary: rustc
commit-hash: fb5ed726f72c6d16c788517c60ec00d4564b9348
commit-date: 2023-12-28
host: x86_64-unknown-linux-gnu
release: 1.77.0-nightly
LLVM version: 17.0.6
Rust feature tracking issue
rust-lang/rust#8995
The text was updated successfully, but these errors were encountered: