Skip to content

Commit 9e20035

Browse files
Fix infinite loop error
1 parent b0b4136 commit 9e20035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/token.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl BytesContainer for InternedString {
639639
// of `BytesContainer`, which is itself a workaround for the lack of
640640
// DST.
641641
unsafe {
642-
let this = &self;
642+
let this = &self[];
643643
mem::transmute::<&[u8],&[u8]>(this.container_as_bytes())
644644
}
645645
}

0 commit comments

Comments
 (0)