@@ -40,7 +40,7 @@ use std::collections::BTreeMap;
40
40
use syntax:: codemap:: { self , Span , Spanned , DUMMY_SP , ExpnId } ;
41
41
use syntax:: abi:: Abi ;
42
42
use 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 } ;
44
44
use syntax:: attr:: ThinAttributes ;
45
45
use syntax:: owned_slice:: OwnedSlice ;
46
46
use syntax:: parse:: token:: InternedString ;
@@ -52,6 +52,18 @@ use util;
52
52
use std:: fmt;
53
53
use serialize:: { Encodable , Encoder , Decoder } ;
54
54
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
+
55
67
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Copy ) ]
56
68
pub struct Lifetime {
57
69
pub id : NodeId ,
@@ -323,6 +335,8 @@ pub struct WhereEqPredicate {
323
335
pub ty : P < Ty > ,
324
336
}
325
337
338
+ pub type CrateConfig = Vec < P < MetaItem > > ;
339
+
326
340
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Debug ) ]
327
341
pub struct Crate {
328
342
pub module : Mod ,
0 commit comments