@@ -13,7 +13,7 @@ use rustc::hir::ptr::P;
13
13
14
14
pub struct Module < ' hir > {
15
15
pub name : Option < Name > ,
16
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
16
+ pub attrs : & ' hir [ ast:: Attribute ] ,
17
17
pub where_outer : Span ,
18
18
pub where_inner : Span ,
19
19
pub extern_crates : Vec < ExternCrate < ' hir > > ,
@@ -41,7 +41,7 @@ pub struct Module<'hir> {
41
41
impl Module < ' hir > {
42
42
pub fn new (
43
43
name : Option < Name > ,
44
- attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
44
+ attrs : & ' hir [ ast:: Attribute ] ,
45
45
vis : & ' hir hir:: Visibility ,
46
46
) -> Module < ' hir > {
47
47
Module {
@@ -89,7 +89,7 @@ pub struct Struct<'hir> {
89
89
pub struct_type : StructType ,
90
90
pub name : Name ,
91
91
pub generics : & ' hir hir:: Generics ,
92
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
92
+ pub attrs : & ' hir [ ast:: Attribute ] ,
93
93
pub fields : & ' hir [ hir:: StructField ] ,
94
94
pub whence : Span ,
95
95
}
@@ -100,7 +100,7 @@ pub struct Union<'hir> {
100
100
pub struct_type : StructType ,
101
101
pub name : Name ,
102
102
pub generics : & ' hir hir:: Generics ,
103
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
103
+ pub attrs : & ' hir [ ast:: Attribute ] ,
104
104
pub fields : & ' hir [ hir:: StructField ] ,
105
105
pub whence : Span ,
106
106
}
@@ -109,7 +109,7 @@ pub struct Enum<'hir> {
109
109
pub vis : & ' hir hir:: Visibility ,
110
110
pub variants : Vec < Variant < ' hir > > ,
111
111
pub generics : & ' hir hir:: Generics ,
112
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
112
+ pub attrs : & ' hir [ ast:: Attribute ] ,
113
113
pub id : hir:: HirId ,
114
114
pub whence : Span ,
115
115
pub name : Name ,
@@ -118,14 +118,14 @@ pub struct Enum<'hir> {
118
118
pub struct Variant < ' hir > {
119
119
pub name : Name ,
120
120
pub id : hir:: HirId ,
121
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
121
+ pub attrs : & ' hir [ ast:: Attribute ] ,
122
122
pub def : & ' hir hir:: VariantData ,
123
123
pub whence : Span ,
124
124
}
125
125
126
126
pub struct Function < ' hir > {
127
127
pub decl : & ' hir hir:: FnDecl ,
128
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
128
+ pub attrs : & ' hir [ ast:: Attribute ] ,
129
129
pub id : hir:: HirId ,
130
130
pub name : Name ,
131
131
pub vis : & ' hir hir:: Visibility ,
@@ -140,7 +140,7 @@ pub struct Typedef<'hir> {
140
140
pub gen : & ' hir hir:: Generics ,
141
141
pub name : Name ,
142
142
pub id : hir:: HirId ,
143
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
143
+ pub attrs : & ' hir [ ast:: Attribute ] ,
144
144
pub whence : Span ,
145
145
pub vis : & ' hir hir:: Visibility ,
146
146
}
@@ -149,7 +149,7 @@ pub struct OpaqueTy<'hir> {
149
149
pub opaque_ty : & ' hir hir:: OpaqueTy ,
150
150
pub name : Name ,
151
151
pub id : hir:: HirId ,
152
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
152
+ pub attrs : & ' hir [ ast:: Attribute ] ,
153
153
pub whence : Span ,
154
154
pub vis : & ' hir hir:: Visibility ,
155
155
}
@@ -160,7 +160,7 @@ pub struct Static<'hir> {
160
160
pub mutability : hir:: Mutability ,
161
161
pub expr : hir:: BodyId ,
162
162
pub name : Name ,
163
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
163
+ pub attrs : & ' hir [ ast:: Attribute ] ,
164
164
pub vis : & ' hir hir:: Visibility ,
165
165
pub id : hir:: HirId ,
166
166
pub whence : Span ,
@@ -170,7 +170,7 @@ pub struct Constant<'hir> {
170
170
pub type_ : & ' hir P < hir:: Ty > ,
171
171
pub expr : hir:: BodyId ,
172
172
pub name : Name ,
173
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
173
+ pub attrs : & ' hir [ ast:: Attribute ] ,
174
174
pub vis : & ' hir hir:: Visibility ,
175
175
pub id : hir:: HirId ,
176
176
pub whence : Span ,
@@ -182,8 +182,8 @@ pub struct Trait<'hir> {
182
182
pub name : Name ,
183
183
pub items : Vec < & ' hir hir:: TraitItem > ,
184
184
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 ] ,
187
187
pub id : hir:: HirId ,
188
188
pub whence : Span ,
189
189
pub vis : & ' hir hir:: Visibility ,
@@ -192,8 +192,8 @@ pub struct Trait<'hir> {
192
192
pub struct TraitAlias < ' hir > {
193
193
pub name : Name ,
194
194
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 ] ,
197
197
pub id : hir:: HirId ,
198
198
pub whence : Span ,
199
199
pub vis : & ' hir hir:: Visibility ,
@@ -208,7 +208,7 @@ pub struct Impl<'hir> {
208
208
pub trait_ : & ' hir Option < hir:: TraitRef > ,
209
209
pub for_ : & ' hir P < hir:: Ty > ,
210
210
pub items : Vec < & ' hir hir:: ImplItem > ,
211
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
211
+ pub attrs : & ' hir [ ast:: Attribute ] ,
212
212
pub whence : Span ,
213
213
pub vis : & ' hir hir:: Visibility ,
214
214
pub id : hir:: HirId ,
@@ -219,7 +219,7 @@ pub struct ForeignItem<'hir> {
219
219
pub id : hir:: HirId ,
220
220
pub name : Name ,
221
221
pub kind : & ' hir hir:: ForeignItemKind ,
222
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
222
+ pub attrs : & ' hir [ ast:: Attribute ] ,
223
223
pub whence : Span ,
224
224
}
225
225
@@ -229,7 +229,7 @@ pub struct Macro<'hir> {
229
229
pub name : Name ,
230
230
pub hid : hir:: HirId ,
231
231
pub def_id : hir:: def_id:: DefId ,
232
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
232
+ pub attrs : & ' hir [ ast:: Attribute ] ,
233
233
pub whence : Span ,
234
234
pub matchers : hir:: HirVec < Span > ,
235
235
pub imported_from : Option < Name > ,
@@ -240,15 +240,15 @@ pub struct ExternCrate<'hir> {
240
240
pub cnum : CrateNum ,
241
241
pub path : Option < String > ,
242
242
pub vis : & ' hir hir:: Visibility ,
243
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
243
+ pub attrs : & ' hir [ ast:: Attribute ] ,
244
244
pub whence : Span ,
245
245
}
246
246
247
247
pub struct Import < ' hir > {
248
248
pub name : Name ,
249
249
pub id : hir:: HirId ,
250
250
pub vis : & ' hir hir:: Visibility ,
251
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
251
+ pub attrs : & ' hir [ ast:: Attribute ] ,
252
252
pub path : & ' hir hir:: Path ,
253
253
pub glob : bool ,
254
254
pub whence : Span ,
@@ -259,7 +259,7 @@ pub struct ProcMacro<'hir> {
259
259
pub id : hir:: HirId ,
260
260
pub kind : MacroKind ,
261
261
pub helpers : Vec < Name > ,
262
- pub attrs : & ' hir hir :: HirVec < ast:: Attribute > ,
262
+ pub attrs : & ' hir [ ast:: Attribute ] ,
263
263
pub whence : Span ,
264
264
}
265
265
0 commit comments