-
Notifications
You must be signed in to change notification settings - Fork 2k
hovering complete template specializations does not show memory layout info #15010
Copy link
Copy link
Closed
Labels
A-idegeneral IDE featuresgeneral IDE featuresA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-idegeneral IDE featuresgeneral IDE featuresA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
Type
Fields
Give feedbackNo fields configured for issues without a type.