diff options
| author | Taiki Endo <te316e89@gmail.com> | 2019-02-07 02:33:01 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2019-02-07 02:33:01 +0900 |
| commit | 7bb082d27fe472f52b103de0ae9fc6fa7e6546cc (patch) | |
| tree | dfed08e00fc6e88022fd7249bd5017e5d57110a7 /src/libsyntax/parse/token.rs | |
| parent | 2596bc1368d1e3d34c9a7841ad87a3100f01cbad (diff) | |
| download | rust-7bb082d27fe472f52b103de0ae9fc6fa7e6546cc.tar.gz rust-7bb082d27fe472f52b103de0ae9fc6fa7e6546cc.zip | |
libsyntax => 2018
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 5181bb8f34e..3b1fa5ea01f 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -1,22 +1,26 @@ -pub use self::BinOpToken::*; -pub use self::Nonterminal::*; -pub use self::DelimToken::*; -pub use self::Lit::*; -pub use self::Token::*; - -use ast::{self}; -use parse::ParseSess; -use print::pprust; -use ptr::P; +pub use BinOpToken::*; +pub use Nonterminal::*; +pub use DelimToken::*; +pub use Lit::*; +pub use Token::*; + +use crate::ast::{self}; +use crate::parse::ParseSess; +use crate::print::pprust; +use crate::ptr::P; +use crate::symbol::keywords; +use crate::syntax::parse::parse_stream_from_source_str; +use crate::tokenstream::{self, DelimSpan, TokenStream, TokenTree}; + use serialize::{Decodable, Decoder, Encodable, Encoder}; -use symbol::keywords; -use syntax::parse::parse_stream_from_source_str; -use syntax_pos::{self, Span, FileName}; use syntax_pos::symbol::{self, Symbol}; -use tokenstream::{self, DelimSpan, TokenStream, TokenTree}; +use syntax_pos::{self, Span, FileName}; +use log::info; use std::{cmp, fmt}; use std::mem; +#[cfg(target_arch = "x86_64")] +use rustc_data_structures::static_assert; use rustc_data_structures::sync::{Lrc, Lock}; #[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)] @@ -683,7 +687,7 @@ impl PartialEq for Nonterminal { } impl fmt::Debug for Nonterminal { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match *self { NtItem(..) => f.pad("NtItem(..)"), NtBlock(..) => f.pad("NtBlock(..)"), @@ -729,7 +733,7 @@ impl PartialEq for LazyTokenStream { } impl fmt::Debug for LazyTokenStream { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Debug::fmt(&self.clone().0.into_inner(), f) } } |
