From 9e20035e339da2feb9f0a07cc8e49bd3b4d2b8b6 Mon Sep 17 00:00:00 2001 From: GuillaumeGomez Date: Thu, 5 Feb 2015 15:11:51 +0100 Subject: [PATCH] Fix infinite loop error --- src/libsyntax/parse/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 39bc7f6f5af5..45f4f044ea4d 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -639,7 +639,7 @@ impl BytesContainer for InternedString { // of `BytesContainer`, which is itself a workaround for the lack of // DST. unsafe { - let this = &self; + let this = &self[]; mem::transmute::<&[u8],&[u8]>(this.container_as_bytes()) } }