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

Visibility not displayed in on-hover box for 'newtype' structs #16508

Closed
nickk-dv opened this issue Feb 8, 2024 · 0 comments · Fixed by #16509
Closed

Visibility not displayed in on-hover box for 'newtype' structs #16508

nickk-dv opened this issue Feb 8, 2024 · 0 comments · Fixed by #16509
Labels
A-hover hover feature C-bug Category: bug

Comments

@nickk-dv
Copy link

nickk-dv commented Feb 8, 2024

Description

Visibility not displayed in on-hover box for 'newtype' structs.

All other item declarations are displayed without any information loss when hovered.
Not sure if there's technical reason for this (I didn't find any related issues).

Example snippet

struct Handle(i32);
struct HandlePub(pub i32);

Observed results

Visibility modifiers aren't shown when hovering the HandlePub type.
On-hover box contents (excluding the source module) provided below:

 // size = 4, align = 0x4
struct Handle(i32);
 // size = 4, align = 0x4
struct HandlePub(i32);

Versions

  • rustc: rustc 1.75.0 (82e1608df 2023-12-21)
  • rust-analyzer: (wasn't able to get, Show RA Version didnt work)
  • vs-code extension: v0.3.1831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-hover hover feature C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants