@@ -187,13 +187,13 @@ pub enum AttributeKind {
187
187
Align { align : Align , span : Span } ,
188
188
189
189
/// Represents `#[rustc_allow_const_fn_unstable]`.
190
- AllowConstFnUnstable ( ThinVec < Symbol > ) ,
190
+ AllowConstFnUnstable { features : ThinVec < ( Symbol , Span ) > } ,
191
191
192
192
/// Represents `#[allow_internal_unstable]`.
193
- AllowInternalUnstable ( ThinVec < ( Symbol , Span ) > ) ,
193
+ AllowInternalUnstable { features : ThinVec < ( Symbol , Span ) > } ,
194
194
195
195
/// Represents `#[rustc_as_ptr]` (used by the `dangling_pointers_from_temporaries` lint).
196
- AsPtr ( Span ) ,
196
+ AsPtr { span : Span } ,
197
197
198
198
/// Represents `#[rustc_default_body_unstable]`.
199
199
BodyStability {
@@ -217,7 +217,7 @@ pub enum AttributeKind {
217
217
} ,
218
218
219
219
/// Represents `#[rustc_const_stable_indirect]`.
220
- ConstStabilityIndirect ,
220
+ ConstStabilityIndirect { span : Span } ,
221
221
222
222
/// Represents [`#[deprecated]`](https://doc.rust-lang.org/stable/reference/attributes/diagnostics.html#the-deprecated-attribute).
223
223
Deprecation { deprecation : Deprecation , span : Span } ,
@@ -226,14 +226,14 @@ pub enum AttributeKind {
226
226
DocComment { style : AttrStyle , kind : CommentKind , span : Span , comment : Symbol } ,
227
227
228
228
/// Represents `#[inline]` and `#[rustc_force_inline]`.
229
- Inline ( InlineAttr , Span ) ,
229
+ Inline { kind : InlineAttr , span : Span } ,
230
230
231
231
/// Represents `#[rustc_macro_transparency]`.
232
- MacroTransparency ( Transparency ) ,
232
+ MacroTransparency { transparency : Transparency , span : Span } ,
233
233
/// Represents `#[optimize(size|speed)]`
234
- Optimize ( OptimizeAttr , Span ) ,
234
+ Optimize { kind : OptimizeAttr , span : Span } ,
235
235
/// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
236
- Repr ( ThinVec < ( ReprAttr , Span ) > ) ,
236
+ Repr { reprs : ThinVec < ( ReprAttr , Span ) > } ,
237
237
238
238
/// Represents `#[stable]`, `#[unstable]` and `#[rustc_allowed_through_unstable_modules]`.
239
239
Stability {
0 commit comments