Skip to content
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

Auto-completion offers doc(hidden) enum variants #19031

Closed
jplatte opened this issue Jan 25, 2025 · 0 comments · Fixed by #19034
Closed

Auto-completion offers doc(hidden) enum variants #19031

jplatte opened this issue Jan 25, 2025 · 0 comments · Fixed by #19034
Assignees
Labels
A-completion autocompletion C-bug Category: bug

Comments

@jplatte
Copy link
Contributor

jplatte commented Jan 25, 2025

Similar to #11499. To re-use its example ($ being the cursor):

let foo: std::io::ErrorKind = todo!();
match foo {
    std::io::ErrorKind::U$
}

offers Uncategorized as the first suggestion, even though that variant is #[doc(hidden)] (and unstable).

rust-analyzer version: 0.4.2279-standalone
rustc version: 1.86.0-nightly (649b995a9 2025-01-22)
editor or extension: VSCode

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants