@@ -2627,7 +2627,6 @@ impl<'hir> Ty<'hir> {
26272627 }
26282628 TyKind :: Tup ( tys) => tys. iter ( ) . any ( Self :: is_suggestable_infer_ty) ,
26292629 TyKind :: Ptr ( mut_ty) | TyKind :: Ref ( _, mut_ty) => mut_ty. ty . is_suggestable_infer_ty ( ) ,
2630- TyKind :: OpaqueDef ( _, generic_args) => are_suggestable_generic_args ( generic_args) ,
26312630 TyKind :: Path ( QPath :: TypeRelative ( ty, segment) ) => {
26322631 ty. is_suggestable_infer_ty ( ) || are_suggestable_generic_args ( segment. args ( ) . args )
26332632 }
@@ -2746,19 +2745,8 @@ pub struct BareFnTy<'hir> {
27462745pub struct OpaqueTy < ' hir > {
27472746 pub hir_id : HirId ,
27482747 pub def_id : LocalDefId ,
2749- pub generics : & ' hir Generics < ' hir > ,
27502748 pub bounds : GenericBounds < ' hir > ,
27512749 pub origin : OpaqueTyOrigin ,
2752- /// Return-position impl traits (and async futures) must "reify" any late-bound
2753- /// lifetimes that are captured from the function signature they originate from.
2754- ///
2755- /// This is done by generating a new early-bound lifetime parameter local to the
2756- /// opaque which is instantiated in the function signature with the late-bound
2757- /// lifetime.
2758- ///
2759- /// This mapping associated a captured lifetime (first parameter) with the new
2760- /// early-bound lifetime that was generated for the opaque.
2761- pub lifetime_mapping : & ' hir [ ( & ' hir Lifetime , LocalDefId ) ] ,
27622750 pub span : Span ,
27632751}
27642752
@@ -2866,7 +2854,7 @@ pub enum TyKind<'hir> {
28662854 /// possibly parameters) that are actually bound on the `impl Trait`.
28672855 ///
28682856 /// The last parameter specifies whether this opaque appears in a trait definition.
2869- OpaqueDef ( & ' hir OpaqueTy < ' hir > , & ' hir [ GenericArg < ' hir > ] ) ,
2857+ OpaqueDef ( & ' hir OpaqueTy < ' hir > ) ,
28702858 /// A trait object type `Bound1 + Bound2 + Bound3`
28712859 /// where `Bound` is a trait or a lifetime.
28722860 TraitObject ( & ' hir [ PolyTraitRef < ' hir > ] , & ' hir Lifetime , TraitObjectSyntax ) ,
@@ -3991,7 +3979,6 @@ impl<'hir> Node<'hir> {
39913979 | Node :: TraitItem ( TraitItem { generics, .. } )
39923980 | Node :: ImplItem ( ImplItem { generics, .. } ) => Some ( generics) ,
39933981 Node :: Item ( item) => item. kind . generics ( ) ,
3994- Node :: OpaqueTy ( opaque) => Some ( opaque. generics ) ,
39953982 _ => None ,
39963983 }
39973984 }
0 commit comments