@@ -2632,7 +2632,6 @@ impl<'hir> Ty<'hir> {
2632
2632
}
2633
2633
TyKind :: Tup ( tys) => tys. iter ( ) . any ( Self :: is_suggestable_infer_ty) ,
2634
2634
TyKind :: Ptr ( mut_ty) | TyKind :: Ref ( _, mut_ty) => mut_ty. ty . is_suggestable_infer_ty ( ) ,
2635
- TyKind :: OpaqueDef ( _, generic_args) => are_suggestable_generic_args ( generic_args) ,
2636
2635
TyKind :: Path ( QPath :: TypeRelative ( ty, segment) ) => {
2637
2636
ty. is_suggestable_infer_ty ( ) || are_suggestable_generic_args ( segment. args ( ) . args )
2638
2637
}
@@ -2751,19 +2750,8 @@ pub struct BareFnTy<'hir> {
2751
2750
pub struct OpaqueTy < ' hir > {
2752
2751
pub hir_id : HirId ,
2753
2752
pub def_id : LocalDefId ,
2754
- pub generics : & ' hir Generics < ' hir > ,
2755
2753
pub bounds : GenericBounds < ' hir > ,
2756
2754
pub origin : OpaqueTyOrigin ,
2757
- /// Return-position impl traits (and async futures) must "reify" any late-bound
2758
- /// lifetimes that are captured from the function signature they originate from.
2759
- ///
2760
- /// This is done by generating a new early-bound lifetime parameter local to the
2761
- /// opaque which is instantiated in the function signature with the late-bound
2762
- /// lifetime.
2763
- ///
2764
- /// This mapping associated a captured lifetime (first parameter) with the new
2765
- /// early-bound lifetime that was generated for the opaque.
2766
- pub lifetime_mapping : & ' hir [ ( & ' hir Lifetime , LocalDefId ) ] ,
2767
2755
pub span : Span ,
2768
2756
}
2769
2757
@@ -2871,7 +2859,7 @@ pub enum TyKind<'hir> {
2871
2859
/// possibly parameters) that are actually bound on the `impl Trait`.
2872
2860
///
2873
2861
/// The last parameter specifies whether this opaque appears in a trait definition.
2874
- OpaqueDef ( & ' hir OpaqueTy < ' hir > , & ' hir [ GenericArg < ' hir > ] ) ,
2862
+ OpaqueDef ( & ' hir OpaqueTy < ' hir > ) ,
2875
2863
/// A trait object type `Bound1 + Bound2 + Bound3`
2876
2864
/// where `Bound` is a trait or a lifetime.
2877
2865
TraitObject (
@@ -3995,7 +3983,6 @@ impl<'hir> Node<'hir> {
3995
3983
| Node :: TraitItem ( TraitItem { generics, .. } )
3996
3984
| Node :: ImplItem ( ImplItem { generics, .. } ) => Some ( generics) ,
3997
3985
Node :: Item ( item) => item. kind . generics ( ) ,
3998
- Node :: OpaqueTy ( opaque) => Some ( opaque. generics ) ,
3999
3986
_ => None ,
4000
3987
}
4001
3988
}
0 commit comments