Skip to content

hovering complete template specializations does not show memory layout info #15010

@adenine-dev

Description

@adenine-dev

rust-analyzer version: 0.3.1541-standalone (2f1b7ce 2023-06-04)

rustc version: rustc 1.72.0-nightly (a97c36d 2023-06-07)

relevant settings: Check command is clippy, all other RA settings are default.

to replicate:

struct X { // hover over `X` and you get "// size = 8, align = 0x8"
    x: Box<f32>, // hover over `Box`, no layout data
}

I believe this is because the template args are not being taken into account on hover so instead of it being Box<f32> it's just Box. Not sure if this is intended behavior but seems like an oversight to not have that info available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-idegeneral IDE featuresA-tytype system / type inference / traits / method resolutionC-bugCategory: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions