@@ -397,7 +397,6 @@ impl Span {
397397 }
398398 }
399399
400- #[ cfg( not( no_hygiene) ) ]
401400 pub fn mixed_site ( ) -> Self {
402401 if inside_proc_macro ( ) {
403402 Span :: Compiler ( proc_macro:: Span :: mixed_site ( ) )
@@ -417,27 +416,15 @@ impl Span {
417416
418417 pub fn resolved_at ( & self , other : Span ) -> Span {
419418 match ( self , other) {
420- #[ cfg( not( no_hygiene) ) ]
421419 ( Span :: Compiler ( a) , Span :: Compiler ( b) ) => Span :: Compiler ( a. resolved_at ( b) ) ,
422-
423- // Name resolution affects semantics, but location is only cosmetic
424- #[ cfg( no_hygiene) ]
425- ( Span :: Compiler ( _) , Span :: Compiler ( _) ) => other,
426-
427420 ( Span :: Fallback ( a) , Span :: Fallback ( b) ) => Span :: Fallback ( a. resolved_at ( b) ) ,
428421 _ => mismatch ( ) ,
429422 }
430423 }
431424
432425 pub fn located_at ( & self , other : Span ) -> Span {
433426 match ( self , other) {
434- #[ cfg( not( no_hygiene) ) ]
435427 ( Span :: Compiler ( a) , Span :: Compiler ( b) ) => Span :: Compiler ( a. located_at ( b) ) ,
436-
437- // Name resolution affects semantics, but location is only cosmetic
438- #[ cfg( no_hygiene) ]
439- ( Span :: Compiler ( _) , Span :: Compiler ( _) ) => * self ,
440-
441428 ( Span :: Fallback ( a) , Span :: Fallback ( b) ) => Span :: Fallback ( a. located_at ( b) ) ,
442429 _ => mismatch ( ) ,
443430 }
0 commit comments