@@ -53,7 +53,6 @@ macro_rules! p {
5353}
5454macro_rules! define_scoped_cx {
5555 ( $cx: ident) => {
56- #[ allow( unused_macros) ]
5756 macro_rules! scoped_cx {
5857 ( ) => {
5958 $cx
@@ -408,8 +407,6 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
408407 def_id : DefId ,
409408 callers : & mut Vec < DefId > ,
410409 ) -> Result < bool , PrintError > {
411- define_scoped_cx ! ( self ) ;
412-
413410 debug ! ( "try_print_visible_def_path: def_id={:?}" , def_id) ;
414411
415412 // If `def_id` is a direct or injected extern crate, return the
@@ -1868,8 +1865,6 @@ impl<'tcx> Printer<'tcx> for FmtPrinter<'_, 'tcx> {
18681865 def_id : DefId ,
18691866 args : & ' tcx [ GenericArg < ' tcx > ] ,
18701867 ) -> Result < ( ) , PrintError > {
1871- define_scoped_cx ! ( self ) ;
1872-
18731868 if args. is_empty ( ) {
18741869 match self . try_print_trimmed_def_path ( def_id) ? {
18751870 true => return Ok ( ( ) ) ,
@@ -2401,8 +2396,6 @@ impl<'tcx> FmtPrinter<'_, 'tcx> {
24012396 let _ = write ! ( cx, "{cont}" ) ;
24022397 } ;
24032398
2404- define_scoped_cx ! ( self ) ;
2405-
24062399 let possible_names = ( 'a' ..='z' ) . rev ( ) . map ( |s| Symbol :: intern ( & format ! ( "'{s}" ) ) ) ;
24072400
24082401 let mut available_names = possible_names
0 commit comments