@@ -662,10 +662,6 @@ impl ProcMacroExpander for IdentityProcMacroExpander {
662662 ) -> Result < TopSubtree , ProcMacroExpansionError > {
663663 Ok ( subtree. clone ( ) )
664664 }
665-
666- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
667- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
668- }
669665}
670666
671667// Expands to a macro_rules! macro, for issue #18089.
@@ -697,10 +693,6 @@ impl ProcMacroExpander for Issue18089ProcMacroExpander {
697693 #subtree
698694 } )
699695 }
700-
701- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
702- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
703- }
704696}
705697
706698// Pastes the attribute input as its output
@@ -721,10 +713,6 @@ impl ProcMacroExpander for AttributeInputReplaceProcMacroExpander {
721713 . cloned ( )
722714 . ok_or_else ( || ProcMacroExpansionError :: Panic ( "Expected attribute input" . into ( ) ) )
723715 }
724-
725- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
726- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
727- }
728716}
729717
730718#[ derive( Debug ) ]
@@ -756,10 +744,6 @@ impl ProcMacroExpander for Issue18840ProcMacroExpander {
756744 top_subtree_delimiter_mut. close = def_site;
757745 Ok ( result)
758746 }
759-
760- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
761- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
762- }
763747}
764748
765749#[ derive( Debug ) ]
@@ -791,10 +775,6 @@ impl ProcMacroExpander for MirrorProcMacroExpander {
791775 traverse ( & mut builder, input. iter ( ) ) ;
792776 Ok ( builder. build ( ) )
793777 }
794-
795- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
796- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
797- }
798778}
799779
800780// Replaces every literal with an empty string literal and every identifier with its first letter,
@@ -835,10 +815,6 @@ impl ProcMacroExpander for ShortenProcMacroExpander {
835815 }
836816 }
837817 }
838-
839- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
840- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
841- }
842818}
843819
844820// Reads ident type within string quotes, for issue #17479.
@@ -864,10 +840,6 @@ impl ProcMacroExpander for Issue17479ProcMacroExpander {
864840 #symbol( )
865841 } )
866842 }
867-
868- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
869- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
870- }
871843}
872844
873845// Reads ident type within string quotes, for issue #17479.
@@ -919,10 +891,6 @@ impl ProcMacroExpander for Issue18898ProcMacroExpander {
919891 }
920892 } )
921893 }
922-
923- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
924- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
925- }
926894}
927895
928896// Reads ident type within string quotes, for issue #17479.
@@ -950,8 +918,4 @@ impl ProcMacroExpander for DisallowCfgProcMacroExpander {
950918 }
951919 Ok ( subtree. clone ( ) )
952920 }
953-
954- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
955- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
956- }
957921}
0 commit comments