Skip to content

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

Closed
@nickk-dv

Description

@nickk-dv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-hoverhover featureC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions