mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
85633656df
E.g. in ``` let foo = 1u32; if true { <|>foo; } ``` the hover shows `()`, the type of the whole if expression, instead of the more sensible `u32`. The reason for this was that the search for an expression was slightly left-biased: When on the edge between two tokens, it first looked at all ancestors of the left token and then of the right token. Instead merge the ancestors in ascending order, so that we get the smaller of the two possible expressions. |
||
---|---|---|
.. | ||
fuzz | ||
src | ||
tests | ||
Cargo.toml |