File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed
compiler/rustc_middle/src/hir/map Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -994,47 +994,6 @@ impl<'hir> intravisit::Map<'hir> for Map<'hir> {
994994 }
995995}
996996
997- trait Named {
998- fn name ( & self ) -> Symbol ;
999- }
1000-
1001- impl < T : Named > Named for Spanned < T > {
1002- fn name ( & self ) -> Symbol {
1003- self . node . name ( )
1004- }
1005- }
1006-
1007- impl Named for Item < ' _ > {
1008- fn name ( & self ) -> Symbol {
1009- self . ident . name
1010- }
1011- }
1012- impl Named for ForeignItem < ' _ > {
1013- fn name ( & self ) -> Symbol {
1014- self . ident . name
1015- }
1016- }
1017- impl Named for Variant < ' _ > {
1018- fn name ( & self ) -> Symbol {
1019- self . ident . name
1020- }
1021- }
1022- impl Named for StructField < ' _ > {
1023- fn name ( & self ) -> Symbol {
1024- self . ident . name
1025- }
1026- }
1027- impl Named for TraitItem < ' _ > {
1028- fn name ( & self ) -> Symbol {
1029- self . ident . name
1030- }
1031- }
1032- impl Named for ImplItem < ' _ > {
1033- fn name ( & self ) -> Symbol {
1034- self . ident . name
1035- }
1036- }
1037-
1038997pub ( super ) fn index_hir < ' tcx > ( tcx : TyCtxt < ' tcx > , cnum : CrateNum ) -> & ' tcx IndexedHir < ' tcx > {
1039998 assert_eq ! ( cnum, LOCAL_CRATE ) ;
1040999
You can’t perform that action at this time.
0 commit comments