about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-03 15:29:08 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-11-03 15:29:08 -0800
commit3aaee490d3e7e6d242aa0c43e4034ad63739e092 (patch)
tree9ba1020a7552e5a8da31707beaf1e0151b514781 /src/libsyntax/parse
parentb8e2eb729410ae2727a85b6ebfebd278ff765805 (diff)
parenta87078a27d4e5434f937ed3810c9fbfa7ff1f793 (diff)
downloadrust-3aaee490d3e7e6d242aa0c43e4034ad63739e092.tar.gz
rust-3aaee490d3e7e6d242aa0c43e4034ad63739e092.zip
rollup merge of #18318 : arielb1/transmute-cleanup
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index d56aa8da72a..615cd34ca14 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -668,12 +668,12 @@ impl InternedString {
 
 impl BytesContainer for InternedString {
     fn container_as_bytes<'a>(&'a self) -> &'a [u8] {
-        // FIXME(pcwalton): This is a workaround for the incorrect signature
+        // FIXME #12938: This is a workaround for the incorrect signature
         // of `BytesContainer`, which is itself a workaround for the lack of
         // DST.
         unsafe {
             let this = self.get();
-            mem::transmute(this.container_as_bytes())
+            mem::transmute::<&[u8],&[u8]>(this.container_as_bytes())
         }
     }
 }