From 9e20035e339da2feb9f0a07cc8e49bd3b4d2b8b6 Mon Sep 17 00:00:00 2001 From: GuillaumeGomez Date: Thu, 5 Feb 2015 15:11:51 +0100 Subject: Fix infinite loop error --- src/libsyntax/parse/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 39bc7f6f5af..45f4f044ea4 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()) } } -- cgit 1.4.1-3-g733a5