@@ -352,7 +352,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LateResolutionVisitor<'a, '_> {
352352 self . smart_resolve_path ( ty. id , qself. as_ref ( ) , path, PathSource :: Type ) ;
353353 }
354354 TyKind :: ImplicitSelf => {
355- let self_ty = Ident :: with_empty_ctxt ( kw:: SelfUpper ) ;
355+ let self_ty = Ident :: with_dummy_span ( kw:: SelfUpper ) ;
356356 let res = self . resolve_ident_in_lexical_scope ( self_ty, TypeNS , Some ( ty. id ) , ty. span )
357357 . map_or ( Res :: Err , |d| d. res ( ) ) ;
358358 self . r . record_partial_res ( ty. id , PartialRes :: new ( res) ) ;
@@ -442,7 +442,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LateResolutionVisitor<'a, '_> {
442442 GenericParamKind :: Type { ref default, .. } => {
443443 found_default |= default. is_some ( ) ;
444444 if found_default {
445- Some ( ( Ident :: with_empty_ctxt ( param. ident . name ) , Res :: Err ) )
445+ Some ( ( Ident :: with_dummy_span ( param. ident . name ) , Res :: Err ) )
446446 } else {
447447 None
448448 }
@@ -459,7 +459,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LateResolutionVisitor<'a, '_> {
459459 false
460460 }
461461 } )
462- . map ( |param| ( Ident :: with_empty_ctxt ( param. ident . name ) , Res :: Err ) ) ) ;
462+ . map ( |param| ( Ident :: with_dummy_span ( param. ident . name ) , Res :: Err ) ) ) ;
463463
464464 for param in & generics. params {
465465 match param. kind {
@@ -476,7 +476,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LateResolutionVisitor<'a, '_> {
476476 }
477477
478478 // Allow all following defaults to refer to this type parameter.
479- default_ban_rib. bindings . remove ( & Ident :: with_empty_ctxt ( param. ident . name ) ) ;
479+ default_ban_rib. bindings . remove ( & Ident :: with_dummy_span ( param. ident . name ) ) ;
480480 }
481481 GenericParamKind :: Const { ref ty } => {
482482 self . ribs [ TypeNS ] . push ( const_ty_param_ban_rib) ;
@@ -965,7 +965,7 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
965965 let mut self_type_rib = Rib :: new ( NormalRibKind ) ;
966966
967967 // Plain insert (no renaming, since types are not currently hygienic)
968- self_type_rib. bindings . insert ( Ident :: with_empty_ctxt ( kw:: SelfUpper ) , self_res) ;
968+ self_type_rib. bindings . insert ( Ident :: with_dummy_span ( kw:: SelfUpper ) , self_res) ;
969969 self . ribs [ TypeNS ] . push ( self_type_rib) ;
970970 f ( self ) ;
971971 self . ribs [ TypeNS ] . pop ( ) ;
@@ -976,7 +976,7 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
976976 {
977977 let self_res = Res :: SelfCtor ( impl_id) ;
978978 let mut self_type_rib = Rib :: new ( NormalRibKind ) ;
979- self_type_rib. bindings . insert ( Ident :: with_empty_ctxt ( kw:: SelfUpper ) , self_res) ;
979+ self_type_rib. bindings . insert ( Ident :: with_dummy_span ( kw:: SelfUpper ) , self_res) ;
980980 self . ribs [ ValueNS ] . push ( self_type_rib) ;
981981 f ( self ) ;
982982 self . ribs [ ValueNS ] . pop ( ) ;
@@ -1476,7 +1476,7 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
14761476 self . r . trait_map . insert ( id, traits) ;
14771477 }
14781478
1479- let mut std_path = vec ! [ Segment :: from_ident( Ident :: with_empty_ctxt ( sym:: std) ) ] ;
1479+ let mut std_path = vec ! [ Segment :: from_ident( Ident :: with_dummy_span ( sym:: std) ) ] ;
14801480 std_path. extend ( path) ;
14811481 if self . r . primitive_type_table . primitive_types . contains_key ( & path[ 0 ] . ident . name ) {
14821482 let cl = CrateLint :: No ;
@@ -1507,7 +1507,7 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
15071507
15081508 fn self_type_is_available ( & mut self , span : Span ) -> bool {
15091509 let binding = self . resolve_ident_in_lexical_scope (
1510- Ident :: with_empty_ctxt ( kw:: SelfUpper ) ,
1510+ Ident :: with_dummy_span ( kw:: SelfUpper ) ,
15111511 TypeNS ,
15121512 None ,
15131513 span,
0 commit comments