diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2014-10-25 20:33:54 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2014-11-03 22:07:43 +0200 |
| commit | fbb90c3458e1db30fc62c96195c9e71ba2111aa4 (patch) | |
| tree | 7e1faee56bce0a40c502b987cd1759be6b008777 /src/libsyntax/parse | |
| parent | 2790505c19b158a5494139dba084b6af82810b96 (diff) | |
| download | rust-fbb90c3458e1db30fc62c96195c9e71ba2111aa4.tar.gz rust-fbb90c3458e1db30fc62c96195c9e71ba2111aa4.zip | |
Clean-up transmutes in libsyntax
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 4 |
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()) } } } |
