aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand/src/hygiene.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-05-24 19:29:48 +0100
committerJonas Schievink <[email protected]>2021-05-24 19:29:48 +0100
commit489ae7a800b02dbdacc1f949c067fa557333e7a1 (patch)
tree05fd003ccc166e52cf81e305a1073d56aed572ff /crates/hir_expand/src/hygiene.rs
parent27bf62b70eeb6f4cb620be5630c4c4506be3539f (diff)
Make `TokenTextRange` private
Diffstat (limited to 'crates/hir_expand/src/hygiene.rs')
-rw-r--r--crates/hir_expand/src/hygiene.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_expand/src/hygiene.rs b/crates/hir_expand/src/hygiene.rs
index 38e09fdd4..d98913907 100644
--- a/crates/hir_expand/src/hygiene.rs
+++ b/crates/hir_expand/src/hygiene.rs
@@ -154,7 +154,7 @@ impl HygieneInfo {
154 }, 154 },
155 }; 155 };
156 156
157 let range = token_map.range_by_token(token_id)?.by_kind(SyntaxKind::IDENT)?; 157 let range = token_map.range_by_token(token_id, SyntaxKind::IDENT)?;
158 Some((tt.with_value(range + tt.value), origin)) 158 Some((tt.with_value(range + tt.value), origin))
159 } 159 }
160} 160}