@@ -40,7 +40,7 @@ use std::collections::BTreeMap;
4040use syntax:: codemap:: { self , Span , Spanned , DUMMY_SP , ExpnId } ;
4141use syntax:: abi:: Abi ;
4242use syntax:: ast:: { Name , Ident , NodeId , DUMMY_NODE_ID , TokenTree , AsmDialect } ;
43- use syntax:: ast:: { Attribute , Lit , StrStyle , FloatTy , IntTy , UintTy , CrateConfig } ;
43+ use syntax:: ast:: { Attribute , Lit , StrStyle , FloatTy , IntTy , UintTy , MetaItem } ;
4444use syntax:: attr:: ThinAttributes ;
4545use syntax:: owned_slice:: OwnedSlice ;
4646use syntax:: parse:: token:: InternedString ;
@@ -52,6 +52,18 @@ use util;
5252use std:: fmt;
5353use serialize:: { Encodable , Encoder , Decoder } ;
5454
55+ pub type Vec < T > = :: std:: vec:: Vec < T > ;
56+
57+ macro_rules! hir_vec {
58+ ( $elem: expr; $n: expr) => (
59+ hir:: Vec :: from( vec![ $elem; $n] )
60+ ) ;
61+ ( $( $x: expr) ,* ) => (
62+ hir:: Vec :: from( vec![ $( $x) ,* ] )
63+ ) ;
64+ ( $( $x: expr, ) * ) => ( vec![ $( $x) ,* ] )
65+ }
66+
5567#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Copy ) ]
5668pub struct Lifetime {
5769 pub id : NodeId ,
@@ -323,6 +335,8 @@ pub struct WhereEqPredicate {
323335 pub ty : P < Ty > ,
324336}
325337
338+ pub type CrateConfig = Vec < P < MetaItem > > ;
339+
326340#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Debug ) ]
327341pub struct Crate {
328342 pub module : Mod ,
0 commit comments