mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix: Fix expression scopes not being calculated for inline consts
This commit is contained in:
parent
ec941e599a
commit
ac389ce2ef
7 changed files with 69 additions and 34 deletions
|
@ -301,8 +301,8 @@ impl SymbolIndex {
|
|||
}
|
||||
|
||||
fn range_to_map_value(start: usize, end: usize) -> u64 {
|
||||
debug_assert![start <= (std::u32::MAX as usize)];
|
||||
debug_assert![end <= (std::u32::MAX as usize)];
|
||||
debug_assert![start <= (u32::MAX as usize)];
|
||||
debug_assert![end <= (u32::MAX as usize)];
|
||||
|
||||
((start as u64) << 32) | end as u64
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue