@@ -62,11 +62,11 @@ pub struct Pattern<'tcx> {
62
62
63
63
64
64
#[ derive( Copy , Clone , Debug , PartialEq ) ]
65
- pub struct PatternTypeProjection < ' tcx > {
65
+ pub struct PatTyProj < ' tcx > {
66
66
pub user_ty : CanonicalUserType < ' tcx > ,
67
67
}
68
68
69
- impl < ' tcx > PatternTypeProjection < ' tcx > {
69
+ impl < ' tcx > PatTyProj < ' tcx > {
70
70
pub ( crate ) fn from_user_type ( user_annotation : CanonicalUserType < ' tcx > ) -> Self {
71
71
Self {
72
72
user_ty : user_annotation,
@@ -92,7 +92,7 @@ impl<'tcx> PatternTypeProjection<'tcx> {
92
92
93
93
#[ derive( Copy , Clone , Debug , PartialEq ) ]
94
94
pub struct Ascription < ' tcx > {
95
- pub user_ty : PatternTypeProjection < ' tcx > ,
95
+ pub user_ty : PatTyProj < ' tcx > ,
96
96
/// Variance to use when relating the type `user_ty` to the **type of the value being
97
97
/// matched**. Typically, this is `Variance::Covariant`, since the value being matched must
98
98
/// have a type that is some subtype of the ascribed type.
@@ -831,7 +831,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
831
831
kind : Box :: new ( kind) ,
832
832
} ,
833
833
ascription : Ascription {
834
- user_ty : PatternTypeProjection :: from_user_type ( user_ty) ,
834
+ user_ty : PatTyProj :: from_user_type ( user_ty) ,
835
835
user_ty_span : span,
836
836
variance : ty:: Variance :: Covariant ,
837
837
} ,
@@ -878,7 +878,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
878
878
879
879
let user_provided_types = self . tables ( ) . user_provided_types ( ) ;
880
880
return if let Some ( u_ty) = user_provided_types. get ( id) {
881
- let user_ty = PatternTypeProjection :: from_user_type ( * u_ty) ;
881
+ let user_ty = PatTyProj :: from_user_type ( * u_ty) ;
882
882
Pattern {
883
883
span,
884
884
kind : Box :: new (
@@ -1358,7 +1358,7 @@ CloneImpls!{ <'tcx>
1358
1358
Span , Field , Mutability , ast:: Name , hir:: HirId , usize , ty:: Const <' tcx>,
1359
1359
Region <' tcx>, Ty <' tcx>, BindingMode , & ' tcx AdtDef ,
1360
1360
SubstsRef <' tcx>, & ' tcx GenericArg <' tcx>, UserType <' tcx>,
1361
- UserTypeProjection , PatternTypeProjection <' tcx>
1361
+ UserTypeProjection , PatTyProj <' tcx>
1362
1362
}
1363
1363
1364
1364
impl < ' tcx > PatternFoldable < ' tcx > for FieldPat < ' tcx > {
0 commit comments