diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-14 10:55:41 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-14 10:55:41 -0700 |
| commit | 88a145ea36967f8afb920af4e096113271432fc5 (patch) | |
| tree | f27662a9745d7701938c70b6793903dc786b7a8d /src/libsyntax/parse | |
| parent | 330466ed9683c387ff5c36ac522d304fc6f609a9 (diff) | |
| parent | b8760afe478f5f2e10687b70146ac7123df2319b (diff) | |
| download | rust-88a145ea36967f8afb920af4e096113271432fc5.tar.gz rust-88a145ea36967f8afb920af4e096113271432fc5.zip | |
rollup merge of #24303: alexcrichton/remove-deprecated
This commit removes these long deprecated modules. Such a nice diff stat!
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 4db85eeea46..2bb74944ce9 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -23,10 +23,7 @@ use util::interner; use serialize::{Decodable, Decoder, Encodable, Encoder}; use std::fmt; -use std::mem; use std::ops::Deref; -#[allow(deprecated)] -use std::old_path::BytesContainer; use std::rc::Rc; #[allow(non_camel_case_types)] @@ -639,19 +636,6 @@ impl Deref for InternedString { fn deref(&self) -> &str { &*self.string } } -#[allow(deprecated)] -impl BytesContainer for InternedString { - fn container_as_bytes<'a>(&'a self) -> &'a [u8] { - // 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[..]; - mem::transmute::<&[u8],&[u8]>(this.container_as_bytes()) - } - } -} - impl fmt::Debug for InternedString { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::Debug::fmt(&self.string, f) |
