@@ -54,19 +54,11 @@ impl HumanReadableErrorType {
54
54
source_map : Option < Lrc < SourceMap > > ,
55
55
teach : bool ,
56
56
terminal_width : Option < usize > ,
57
- external_macro_backtrace : bool ,
57
+ macro_backtrace : bool ,
58
58
) -> EmitterWriter {
59
59
let ( short, color_config) = self . unzip ( ) ;
60
60
let color = color_config. suggests_using_colors ( ) ;
61
- EmitterWriter :: new (
62
- dst,
63
- source_map,
64
- short,
65
- teach,
66
- color,
67
- terminal_width,
68
- external_macro_backtrace,
69
- )
61
+ EmitterWriter :: new ( dst, source_map, short, teach, color, terminal_width, macro_backtrace)
70
62
}
71
63
}
72
64
@@ -294,12 +286,12 @@ pub trait Emitter {
294
286
if self . fix_multispans_in_extern_macros ( source_map, span, children) {
295
287
let msg = if level == & Error {
296
288
"this error originates in a macro outside of the current crate \
297
- (in Nightly builds, run with -Z external- macro-backtrace \
289
+ (in Nightly builds, run with -Z macro-backtrace \
298
290
for more info)"
299
291
. to_string ( )
300
292
} else {
301
293
"this warning originates in a macro outside of the current crate \
302
- (in Nightly builds, run with -Z external- macro-backtrace \
294
+ (in Nightly builds, run with -Z macro-backtrace \
303
295
for more info)"
304
296
. to_string ( )
305
297
} ;
@@ -467,7 +459,7 @@ impl Emitter for EmitterWriter {
467
459
& mut primary_span,
468
460
& mut children,
469
461
& diag. level ,
470
- self . external_macro_backtrace ,
462
+ self . macro_backtrace ,
471
463
) ;
472
464
473
465
self . emit_messages_default (
@@ -546,7 +538,7 @@ pub struct EmitterWriter {
546
538
ui_testing : bool ,
547
539
terminal_width : Option < usize > ,
548
540
549
- external_macro_backtrace : bool ,
541
+ macro_backtrace : bool ,
550
542
}
551
543
552
544
#[ derive( Debug ) ]
@@ -563,7 +555,7 @@ impl EmitterWriter {
563
555
short_message : bool ,
564
556
teach : bool ,
565
557
terminal_width : Option < usize > ,
566
- external_macro_backtrace : bool ,
558
+ macro_backtrace : bool ,
567
559
) -> EmitterWriter {
568
560
let dst = Destination :: from_stderr ( color_config) ;
569
561
EmitterWriter {
@@ -573,7 +565,7 @@ impl EmitterWriter {
573
565
teach,
574
566
ui_testing : false ,
575
567
terminal_width,
576
- external_macro_backtrace ,
568
+ macro_backtrace ,
577
569
}
578
570
}
579
571
@@ -584,7 +576,7 @@ impl EmitterWriter {
584
576
teach : bool ,
585
577
colored : bool ,
586
578
terminal_width : Option < usize > ,
587
- external_macro_backtrace : bool ,
579
+ macro_backtrace : bool ,
588
580
) -> EmitterWriter {
589
581
EmitterWriter {
590
582
dst : Raw ( dst, colored) ,
@@ -593,7 +585,7 @@ impl EmitterWriter {
593
585
teach,
594
586
ui_testing : false ,
595
587
terminal_width,
596
- external_macro_backtrace ,
588
+ macro_backtrace ,
597
589
}
598
590
}
599
591
0 commit comments