@@ -1494,7 +1494,7 @@ pub struct SourceScopeLocalData {
1494
1494
/// &'static str`.
1495
1495
#[ derive( Clone , Debug , TyEncodable , TyDecodable , HashStable , TypeFoldable , TypeVisitable ) ]
1496
1496
pub struct UserTypeProjections {
1497
- pub contents : Vec < ( UserTypeProjection , Span ) > ,
1497
+ pub contents : Vec < UserTypeProjection > ,
1498
1498
}
1499
1499
1500
1500
impl < ' tcx > UserTypeProjections {
@@ -1506,26 +1506,17 @@ impl<'tcx> UserTypeProjections {
1506
1506
self . contents . is_empty ( )
1507
1507
}
1508
1508
1509
- pub fn projections_and_spans (
1510
- & self ,
1511
- ) -> impl Iterator < Item = & ( UserTypeProjection , Span ) > + ExactSizeIterator {
1512
- self . contents . iter ( )
1513
- }
1514
-
1515
1509
pub fn projections ( & self ) -> impl Iterator < Item = & UserTypeProjection > + ExactSizeIterator {
1516
- self . contents . iter ( ) . map ( | & ( ref user_type , _span ) | user_type )
1510
+ self . contents . iter ( )
1517
1511
}
1518
1512
1519
- pub fn push_user_type ( mut self , base_user_ty : UserTypeAnnotationIndex , span : Span ) -> Self {
1520
- self . contents . push ( ( UserTypeProjection { base : base_user_ty , projs : vec ! [ ] } , span ) ) ;
1513
+ pub fn push_user_type ( mut self , base_user_type : UserTypeAnnotationIndex ) -> Self {
1514
+ self . contents . push ( UserTypeProjection { base : base_user_type , projs : vec ! [ ] } ) ;
1521
1515
self
1522
1516
}
1523
1517
1524
- fn map_projections (
1525
- mut self ,
1526
- mut f : impl FnMut ( UserTypeProjection ) -> UserTypeProjection ,
1527
- ) -> Self {
1528
- self . contents = self . contents . into_iter ( ) . map ( |( proj, span) | ( f ( proj) , span) ) . collect ( ) ;
1518
+ fn map_projections ( mut self , f : impl FnMut ( UserTypeProjection ) -> UserTypeProjection ) -> Self {
1519
+ self . contents = self . contents . into_iter ( ) . map ( f) . collect ( ) ;
1529
1520
self
1530
1521
}
1531
1522
0 commit comments