Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_expand/src/hygiene.rs')
| -rw-r--r-- | crates/hir_expand/src/hygiene.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_expand/src/hygiene.rs b/crates/hir_expand/src/hygiene.rs index 5deb59ae31..cac484a325 100644 --- a/crates/hir_expand/src/hygiene.rs +++ b/crates/hir_expand/src/hygiene.rs @@ -171,7 +171,7 @@ impl HygieneInfo { }, }; - let range = token_map.range_by_token(token_id, SyntaxKind::IDENT)?; + let range = token_map.first_range_by_token(token_id, SyntaxKind::IDENT)?; Some((tt.with_value(range + tt.value), origin)) } } |