@@ -53,7 +53,6 @@ macro_rules! p {
53
53
}
54
54
macro_rules! define_scoped_cx {
55
55
( $cx: ident) => {
56
- #[ allow( unused_macros) ]
57
56
macro_rules! scoped_cx {
58
57
( ) => {
59
58
$cx
@@ -408,8 +407,6 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
408
407
def_id : DefId ,
409
408
callers : & mut Vec < DefId > ,
410
409
) -> Result < bool , PrintError > {
411
- define_scoped_cx ! ( self ) ;
412
-
413
410
debug ! ( "try_print_visible_def_path: def_id={:?}" , def_id) ;
414
411
415
412
// If `def_id` is a direct or injected extern crate, return the
@@ -1868,8 +1865,6 @@ impl<'tcx> Printer<'tcx> for FmtPrinter<'_, 'tcx> {
1868
1865
def_id : DefId ,
1869
1866
args : & ' tcx [ GenericArg < ' tcx > ] ,
1870
1867
) -> Result < ( ) , PrintError > {
1871
- define_scoped_cx ! ( self ) ;
1872
-
1873
1868
if args. is_empty ( ) {
1874
1869
match self . try_print_trimmed_def_path ( def_id) ? {
1875
1870
true => return Ok ( ( ) ) ,
@@ -2401,8 +2396,6 @@ impl<'tcx> FmtPrinter<'_, 'tcx> {
2401
2396
let _ = write ! ( cx, "{cont}" ) ;
2402
2397
} ;
2403
2398
2404
- define_scoped_cx ! ( self ) ;
2405
-
2406
2399
let possible_names = ( 'a' ..='z' ) . rev ( ) . map ( |s| Symbol :: intern ( & format ! ( "'{s}" ) ) ) ;
2407
2400
2408
2401
let mut available_names = possible_names
0 commit comments