@@ -3417,9 +3417,9 @@ impl Item {
3417
3417
ItemKind :: Fn ( i) => Some ( & i. generics ) ,
3418
3418
ItemKind :: TyAlias ( i) => Some ( & i. generics ) ,
3419
3419
ItemKind :: TraitAlias ( _, generics, _)
3420
- | ItemKind :: Enum ( _, _ , generics )
3421
- | ItemKind :: Struct ( _, _ , generics )
3422
- | ItemKind :: Union ( _, _ , generics ) => Some ( & generics) ,
3420
+ | ItemKind :: Enum ( _, generics , _ )
3421
+ | ItemKind :: Struct ( _, generics , _ )
3422
+ | ItemKind :: Union ( _, generics , _ ) => Some ( & generics) ,
3423
3423
ItemKind :: Trait ( i) => Some ( & i. generics ) ,
3424
3424
ItemKind :: Impl ( i) => Some ( & i. generics ) ,
3425
3425
}
@@ -3663,15 +3663,15 @@ pub enum ItemKind {
3663
3663
/// An enum definition (`enum`).
3664
3664
///
3665
3665
/// E.g., `enum Foo<A, B> { C<A>, D<B> }`.
3666
- Enum ( Ident , EnumDef , Generics ) ,
3666
+ Enum ( Ident , Generics , EnumDef ) ,
3667
3667
/// A struct definition (`struct`).
3668
3668
///
3669
3669
/// E.g., `struct Foo<A> { x: A }`.
3670
- Struct ( Ident , VariantData , Generics ) ,
3670
+ Struct ( Ident , Generics , VariantData ) ,
3671
3671
/// A union definition (`union`).
3672
3672
///
3673
3673
/// E.g., `union Foo<A, B> { x: A, y: B }`.
3674
- Union ( Ident , VariantData , Generics ) ,
3674
+ Union ( Ident , Generics , VariantData ) ,
3675
3675
/// A trait declaration (`trait`).
3676
3676
///
3677
3677
/// E.g., `trait Foo { .. }`, `trait Foo<T> { .. }` or `auto trait Foo {}`.
@@ -3688,10 +3688,8 @@ pub enum ItemKind {
3688
3688
///
3689
3689
/// E.g., `foo!(..)`.
3690
3690
MacCall ( P < MacCall > ) ,
3691
-
3692
3691
/// A macro definition.
3693
3692
MacroDef ( Ident , MacroDef ) ,
3694
-
3695
3693
/// A single delegation item (`reuse`).
3696
3694
///
3697
3695
/// E.g. `reuse <Type as Trait>::name { target_expr_template }`.
@@ -3767,9 +3765,9 @@ impl ItemKind {
3767
3765
Self :: Fn ( box Fn { generics, .. } )
3768
3766
| Self :: TyAlias ( box TyAlias { generics, .. } )
3769
3767
| Self :: Const ( box ConstItem { generics, .. } )
3770
- | Self :: Enum ( _, _ , generics )
3771
- | Self :: Struct ( _, _ , generics )
3772
- | Self :: Union ( _, _ , generics )
3768
+ | Self :: Enum ( _, generics , _ )
3769
+ | Self :: Struct ( _, generics , _ )
3770
+ | Self :: Union ( _, generics , _ )
3773
3771
| Self :: Trait ( box Trait { generics, .. } )
3774
3772
| Self :: TraitAlias ( _, generics, _)
3775
3773
| Self :: Impl ( box Impl { generics, .. } ) => Some ( generics) ,
0 commit comments