@@ -662,10 +662,6 @@ impl ProcMacroExpander for IdentityProcMacroExpander {
662
662
) -> Result < TopSubtree , ProcMacroExpansionError > {
663
663
Ok ( subtree. clone ( ) )
664
664
}
665
-
666
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
667
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
668
- }
669
665
}
670
666
671
667
// Expands to a macro_rules! macro, for issue #18089.
@@ -697,10 +693,6 @@ impl ProcMacroExpander for Issue18089ProcMacroExpander {
697
693
#subtree
698
694
} )
699
695
}
700
-
701
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
702
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
703
- }
704
696
}
705
697
706
698
// Pastes the attribute input as its output
@@ -721,10 +713,6 @@ impl ProcMacroExpander for AttributeInputReplaceProcMacroExpander {
721
713
. cloned ( )
722
714
. ok_or_else ( || ProcMacroExpansionError :: Panic ( "Expected attribute input" . into ( ) ) )
723
715
}
724
-
725
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
726
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
727
- }
728
716
}
729
717
730
718
#[ derive( Debug ) ]
@@ -756,10 +744,6 @@ impl ProcMacroExpander for Issue18840ProcMacroExpander {
756
744
top_subtree_delimiter_mut. close = def_site;
757
745
Ok ( result)
758
746
}
759
-
760
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
761
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
762
- }
763
747
}
764
748
765
749
#[ derive( Debug ) ]
@@ -791,10 +775,6 @@ impl ProcMacroExpander for MirrorProcMacroExpander {
791
775
traverse ( & mut builder, input. iter ( ) ) ;
792
776
Ok ( builder. build ( ) )
793
777
}
794
-
795
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
796
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
797
- }
798
778
}
799
779
800
780
// Replaces every literal with an empty string literal and every identifier with its first letter,
@@ -835,10 +815,6 @@ impl ProcMacroExpander for ShortenProcMacroExpander {
835
815
}
836
816
}
837
817
}
838
-
839
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
840
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
841
- }
842
818
}
843
819
844
820
// Reads ident type within string quotes, for issue #17479.
@@ -864,10 +840,6 @@ impl ProcMacroExpander for Issue17479ProcMacroExpander {
864
840
#symbol( )
865
841
} )
866
842
}
867
-
868
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
869
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
870
- }
871
843
}
872
844
873
845
// Reads ident type within string quotes, for issue #17479.
@@ -919,10 +891,6 @@ impl ProcMacroExpander for Issue18898ProcMacroExpander {
919
891
}
920
892
} )
921
893
}
922
-
923
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
924
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
925
- }
926
894
}
927
895
928
896
// Reads ident type within string quotes, for issue #17479.
@@ -950,8 +918,4 @@ impl ProcMacroExpander for DisallowCfgProcMacroExpander {
950
918
}
951
919
Ok ( subtree. clone ( ) )
952
920
}
953
-
954
- fn eq_dyn ( & self , other : & dyn ProcMacroExpander ) -> bool {
955
- other. as_any ( ) . type_id ( ) == std:: any:: TypeId :: of :: < Self > ( )
956
- }
957
921
}
0 commit comments