@@ -2627,7 +2627,6 @@ impl<'hir> Ty<'hir> {
2627
2627
}
2628
2628
TyKind :: Tup ( tys) => tys. iter ( ) . any ( Self :: is_suggestable_infer_ty) ,
2629
2629
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) ,
2631
2630
TyKind :: Path ( QPath :: TypeRelative ( ty, segment) ) => {
2632
2631
ty. is_suggestable_infer_ty ( ) || are_suggestable_generic_args ( segment. args ( ) . args )
2633
2632
}
@@ -2746,19 +2745,8 @@ pub struct BareFnTy<'hir> {
2746
2745
pub struct OpaqueTy < ' hir > {
2747
2746
pub hir_id : HirId ,
2748
2747
pub def_id : LocalDefId ,
2749
- pub generics : & ' hir Generics < ' hir > ,
2750
2748
pub bounds : GenericBounds < ' hir > ,
2751
2749
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 ) ] ,
2762
2750
pub span : Span ,
2763
2751
}
2764
2752
@@ -2866,7 +2854,7 @@ pub enum TyKind<'hir> {
2866
2854
/// possibly parameters) that are actually bound on the `impl Trait`.
2867
2855
///
2868
2856
/// 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 > ) ,
2870
2858
/// A trait object type `Bound1 + Bound2 + Bound3`
2871
2859
/// where `Bound` is a trait or a lifetime.
2872
2860
TraitObject ( & ' hir [ PolyTraitRef < ' hir > ] , & ' hir Lifetime , TraitObjectSyntax ) ,
@@ -3991,7 +3979,6 @@ impl<'hir> Node<'hir> {
3991
3979
| Node :: TraitItem ( TraitItem { generics, .. } )
3992
3980
| Node :: ImplItem ( ImplItem { generics, .. } ) => Some ( generics) ,
3993
3981
Node :: Item ( item) => item. kind . generics ( ) ,
3994
- Node :: OpaqueTy ( opaque) => Some ( opaque. generics ) ,
3995
3982
_ => None ,
3996
3983
}
3997
3984
}
0 commit comments