summaryrefslogtreecommitdiff
path: root/src/syntax/span.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/span.rs')
-rw-r--r--src/syntax/span.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/span.rs b/src/syntax/span.rs
index 0e4ec215..91e0a3cf 100644
--- a/src/syntax/span.rs
+++ b/src/syntax/span.rs
@@ -56,7 +56,7 @@ impl Span {
/// Pack the components into a span.
#[track_caller]
const fn pack(id: SourceId, number: u64) -> Span {
- let bits = ((id.into_u16() as u64) << Self::BITS) | number;
+ let bits = ((id.as_u16() as u64) << Self::BITS) | number;
match NonZeroU64::new(bits) {
Some(v) => Self(v),
None => panic!("span encoding is zero"),