@@ -2632,7 +2632,6 @@ impl<'hir> Ty<'hir> {
26322632 }
26332633 TyKind :: Tup ( tys) => tys. iter ( ) . any ( Self :: is_suggestable_infer_ty) ,
26342634 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) ,
26362635 TyKind :: Path ( QPath :: TypeRelative ( ty, segment) ) => {
26372636 ty. is_suggestable_infer_ty ( ) || are_suggestable_generic_args ( segment. args ( ) . args )
26382637 }
@@ -2751,19 +2750,8 @@ pub struct BareFnTy<'hir> {
27512750pub struct OpaqueTy < ' hir > {
27522751 pub hir_id : HirId ,
27532752 pub def_id : LocalDefId ,
2754- pub generics : & ' hir Generics < ' hir > ,
27552753 pub bounds : GenericBounds < ' hir > ,
27562754 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 ) ] ,
27672755 pub span : Span ,
27682756}
27692757
@@ -2871,7 +2859,7 @@ pub enum TyKind<'hir> {
28712859 /// possibly parameters) that are actually bound on the `impl Trait`.
28722860 ///
28732861 /// 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 > ) ,
28752863 /// A trait object type `Bound1 + Bound2 + Bound3`
28762864 /// where `Bound` is a trait or a lifetime.
28772865 TraitObject (
@@ -3995,7 +3983,6 @@ impl<'hir> Node<'hir> {
39953983 | Node :: TraitItem ( TraitItem { generics, .. } )
39963984 | Node :: ImplItem ( ImplItem { generics, .. } ) => Some ( generics) ,
39973985 Node :: Item ( item) => item. kind . generics ( ) ,
3998- Node :: OpaqueTy ( opaque) => Some ( opaque. generics ) ,
39993986 _ => None ,
40003987 }
40013988 }
0 commit comments