@@ -13,7 +13,7 @@ use rustc::hir::ptr::P;
1313
1414pub struct Module < ' hir > {
1515 pub name : Option < Name > ,
16- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
16+ pub attrs : & ' hir [ ast:: Attribute ] ,
1717 pub where_outer : Span ,
1818 pub where_inner : Span ,
1919 pub extern_crates : Vec < ExternCrate < ' hir > > ,
@@ -41,7 +41,7 @@ pub struct Module<'hir> {
4141impl Module < ' hir > {
4242 pub fn new (
4343 name : Option < Name > ,
44- attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
44+ attrs : & ' hir [ ast:: Attribute ] ,
4545 vis : & ' hir hir:: Visibility ,
4646 ) -> Module < ' hir > {
4747 Module {
@@ -89,7 +89,7 @@ pub struct Struct<'hir> {
8989 pub struct_type : StructType ,
9090 pub name : Name ,
9191 pub generics : & ' hir hir:: Generics ,
92- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
92+ pub attrs : & ' hir [ ast:: Attribute ] ,
9393 pub fields : & ' hir [ hir:: StructField ] ,
9494 pub whence : Span ,
9595}
@@ -100,7 +100,7 @@ pub struct Union<'hir> {
100100 pub struct_type : StructType ,
101101 pub name : Name ,
102102 pub generics : & ' hir hir:: Generics ,
103- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
103+ pub attrs : & ' hir [ ast:: Attribute ] ,
104104 pub fields : & ' hir [ hir:: StructField ] ,
105105 pub whence : Span ,
106106}
@@ -109,7 +109,7 @@ pub struct Enum<'hir> {
109109 pub vis : & ' hir hir:: Visibility ,
110110 pub variants : Vec < Variant < ' hir > > ,
111111 pub generics : & ' hir hir:: Generics ,
112- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
112+ pub attrs : & ' hir [ ast:: Attribute ] ,
113113 pub id : hir:: HirId ,
114114 pub whence : Span ,
115115 pub name : Name ,
@@ -118,14 +118,14 @@ pub struct Enum<'hir> {
118118pub struct Variant < ' hir > {
119119 pub name : Name ,
120120 pub id : hir:: HirId ,
121- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
121+ pub attrs : & ' hir [ ast:: Attribute ] ,
122122 pub def : & ' hir hir:: VariantData ,
123123 pub whence : Span ,
124124}
125125
126126pub struct Function < ' hir > {
127127 pub decl : & ' hir hir:: FnDecl ,
128- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
128+ pub attrs : & ' hir [ ast:: Attribute ] ,
129129 pub id : hir:: HirId ,
130130 pub name : Name ,
131131 pub vis : & ' hir hir:: Visibility ,
@@ -140,7 +140,7 @@ pub struct Typedef<'hir> {
140140 pub gen : & ' hir hir:: Generics ,
141141 pub name : Name ,
142142 pub id : hir:: HirId ,
143- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
143+ pub attrs : & ' hir [ ast:: Attribute ] ,
144144 pub whence : Span ,
145145 pub vis : & ' hir hir:: Visibility ,
146146}
@@ -149,7 +149,7 @@ pub struct OpaqueTy<'hir> {
149149 pub opaque_ty : & ' hir hir:: OpaqueTy ,
150150 pub name : Name ,
151151 pub id : hir:: HirId ,
152- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
152+ pub attrs : & ' hir [ ast:: Attribute ] ,
153153 pub whence : Span ,
154154 pub vis : & ' hir hir:: Visibility ,
155155}
@@ -160,7 +160,7 @@ pub struct Static<'hir> {
160160 pub mutability : hir:: Mutability ,
161161 pub expr : hir:: BodyId ,
162162 pub name : Name ,
163- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
163+ pub attrs : & ' hir [ ast:: Attribute ] ,
164164 pub vis : & ' hir hir:: Visibility ,
165165 pub id : hir:: HirId ,
166166 pub whence : Span ,
@@ -170,7 +170,7 @@ pub struct Constant<'hir> {
170170 pub type_ : & ' hir P < hir:: Ty > ,
171171 pub expr : hir:: BodyId ,
172172 pub name : Name ,
173- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
173+ pub attrs : & ' hir [ ast:: Attribute ] ,
174174 pub vis : & ' hir hir:: Visibility ,
175175 pub id : hir:: HirId ,
176176 pub whence : Span ,
@@ -182,8 +182,8 @@ pub struct Trait<'hir> {
182182 pub name : Name ,
183183 pub items : Vec < & ' hir hir:: TraitItem > ,
184184 pub generics : & ' hir hir:: Generics ,
185- pub bounds : & ' hir hir:: HirVec < hir :: GenericBound > ,
186- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
185+ pub bounds : & ' hir [ hir:: GenericBound ] ,
186+ pub attrs : & ' hir [ ast:: Attribute ] ,
187187 pub id : hir:: HirId ,
188188 pub whence : Span ,
189189 pub vis : & ' hir hir:: Visibility ,
@@ -192,8 +192,8 @@ pub struct Trait<'hir> {
192192pub struct TraitAlias < ' hir > {
193193 pub name : Name ,
194194 pub generics : & ' hir hir:: Generics ,
195- pub bounds : & ' hir hir:: HirVec < hir :: GenericBound > ,
196- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
195+ pub bounds : & ' hir [ hir:: GenericBound ] ,
196+ pub attrs : & ' hir [ ast:: Attribute ] ,
197197 pub id : hir:: HirId ,
198198 pub whence : Span ,
199199 pub vis : & ' hir hir:: Visibility ,
@@ -208,7 +208,7 @@ pub struct Impl<'hir> {
208208 pub trait_ : & ' hir Option < hir:: TraitRef > ,
209209 pub for_ : & ' hir P < hir:: Ty > ,
210210 pub items : Vec < & ' hir hir:: ImplItem > ,
211- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
211+ pub attrs : & ' hir [ ast:: Attribute ] ,
212212 pub whence : Span ,
213213 pub vis : & ' hir hir:: Visibility ,
214214 pub id : hir:: HirId ,
@@ -219,7 +219,7 @@ pub struct ForeignItem<'hir> {
219219 pub id : hir:: HirId ,
220220 pub name : Name ,
221221 pub kind : & ' hir hir:: ForeignItemKind ,
222- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
222+ pub attrs : & ' hir [ ast:: Attribute ] ,
223223 pub whence : Span ,
224224}
225225
@@ -229,7 +229,7 @@ pub struct Macro<'hir> {
229229 pub name : Name ,
230230 pub hid : hir:: HirId ,
231231 pub def_id : hir:: def_id:: DefId ,
232- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
232+ pub attrs : & ' hir [ ast:: Attribute ] ,
233233 pub whence : Span ,
234234 pub matchers : hir:: HirVec < Span > ,
235235 pub imported_from : Option < Name > ,
@@ -240,15 +240,15 @@ pub struct ExternCrate<'hir> {
240240 pub cnum : CrateNum ,
241241 pub path : Option < String > ,
242242 pub vis : & ' hir hir:: Visibility ,
243- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
243+ pub attrs : & ' hir [ ast:: Attribute ] ,
244244 pub whence : Span ,
245245}
246246
247247pub struct Import < ' hir > {
248248 pub name : Name ,
249249 pub id : hir:: HirId ,
250250 pub vis : & ' hir hir:: Visibility ,
251- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
251+ pub attrs : & ' hir [ ast:: Attribute ] ,
252252 pub path : & ' hir hir:: Path ,
253253 pub glob : bool ,
254254 pub whence : Span ,
@@ -259,7 +259,7 @@ pub struct ProcMacro<'hir> {
259259 pub id : hir:: HirId ,
260260 pub kind : MacroKind ,
261261 pub helpers : Vec < Name > ,
262- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
262+ pub attrs : & ' hir [ ast:: Attribute ] ,
263263 pub whence : Span ,
264264}
265265
0 commit comments