You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when hovering on a type rust analyzer displays the size
working examples:
structExample1(u32);structExample2([u16;3]);typeExample3 = Option<Example2>;constSIZE_4:usize = 4;structExample4{a:[u8;SIZE_4],b:Example3,}constSIZE_5:usize = {letmut s = 5;while s < 18{
s += 4;}
s
};structExample5([(Example1,Example2);SIZE_5]);
when using expressions like a function or even { 1 } the size (and align) is no longer displayed
Const generic support is a work in progress. We currently don't lower anything more complex that a scalar (like 2) and a simple name (like N). The above examples also didn't work until very recently, but now that they work, you can name your constants as a workaround.
when hovering on a type rust analyzer displays the size
working examples:
when using expressions like a function or even
{ 1 }
the size (and align) is no longer displayedrust-analyzer version: 0.4.1509-standalone
rustc version: rustc 1.69.0 (84c898d65 2023-04-16)
relevant settings: None
related: #4091
The text was updated successfully, but these errors were encountered: