about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorGuillaumeGomez <guillaume1.gomez@gmail.com>2015-02-05 15:11:51 +0100
committerGuillaumeGomez <guillaume1.gomez@gmail.com>2015-02-06 12:03:48 +0100
commit9e20035e339da2feb9f0a07cc8e49bd3b4d2b8b6 (patch)
treedd129b10cee8070901551ec0a6aec768274dc8d6 /src/libsyntax/parse
parentb0b4136d457d7be14ab147b6a46ea6bda10966f0 (diff)
downloadrust-9e20035e339da2feb9f0a07cc8e49bd3b4d2b8b6.tar.gz
rust-9e20035e339da2feb9f0a07cc8e49bd3b4d2b8b6.zip
Fix infinite loop error
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs2
1 files changed, 1 insertions, 1 deletions
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())
         }
     }