@@ -1494,7 +1494,7 @@ pub struct SourceScopeLocalData {
14941494/// &'static str`.
14951495#[ derive( Clone , Debug , TyEncodable , TyDecodable , HashStable , TypeFoldable , TypeVisitable ) ]
14961496pub struct UserTypeProjections {
1497- pub contents : Vec < ( UserTypeProjection , Span ) > ,
1497+ pub contents : Vec < UserTypeProjection > ,
14981498}
14991499
15001500impl < ' tcx > UserTypeProjections {
@@ -1506,26 +1506,17 @@ impl<'tcx> UserTypeProjections {
15061506 self . contents . is_empty ( )
15071507 }
15081508
1509- pub fn projections_and_spans (
1510- & self ,
1511- ) -> impl Iterator < Item = & ( UserTypeProjection , Span ) > + ExactSizeIterator {
1512- self . contents . iter ( )
1513- }
1514-
15151509 pub fn projections ( & self ) -> impl Iterator < Item = & UserTypeProjection > + ExactSizeIterator {
1516- self . contents . iter ( ) . map ( | & ( ref user_type , _span ) | user_type )
1510+ self . contents . iter ( )
15171511 }
15181512
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 ! [ ] } ) ;
15211515 self
15221516 }
15231517
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 ( ) ;
15291520 self
15301521 }
15311522
0 commit comments