Refactor Attribute
to use Path
and TokenStream
instead of MetaItem
.
This commit is contained in:
parent
460bf55f8a
commit
68c1cc68b4
41 changed files with 623 additions and 371 deletions
|
@ -17,7 +17,7 @@ pub use self::Token::*;
|
|||
use ast::{self};
|
||||
use ptr::P;
|
||||
use symbol::keywords;
|
||||
use tokenstream;
|
||||
use tokenstream::TokenTree;
|
||||
|
||||
use std::fmt;
|
||||
use std::rc::Rc;
|
||||
|
@ -348,7 +348,7 @@ pub enum Nonterminal {
|
|||
/// Stuff inside brackets for attributes
|
||||
NtMeta(ast::MetaItem),
|
||||
NtPath(ast::Path),
|
||||
NtTT(tokenstream::TokenTree),
|
||||
NtTT(TokenTree),
|
||||
// These are not exposed to macros, but are used by quasiquote.
|
||||
NtArm(ast::Arm),
|
||||
NtImplItem(ast::ImplItem),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue