@@ -54,19 +54,11 @@ impl HumanReadableErrorType {
5454 source_map : Option < Lrc < SourceMap > > ,
5555 teach : bool ,
5656 terminal_width : Option < usize > ,
57- external_macro_backtrace : bool ,
57+ macro_backtrace : bool ,
5858 ) -> EmitterWriter {
5959 let ( short, color_config) = self . unzip ( ) ;
6060 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)
7062 }
7163}
7264
@@ -294,12 +286,12 @@ pub trait Emitter {
294286 if self . fix_multispans_in_extern_macros ( source_map, span, children) {
295287 let msg = if level == & Error {
296288 "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 \
298290 for more info)"
299291 . to_string ( )
300292 } else {
301293 "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 \
303295 for more info)"
304296 . to_string ( )
305297 } ;
@@ -467,7 +459,7 @@ impl Emitter for EmitterWriter {
467459 & mut primary_span,
468460 & mut children,
469461 & diag. level ,
470- self . external_macro_backtrace ,
462+ self . macro_backtrace ,
471463 ) ;
472464
473465 self . emit_messages_default (
@@ -546,7 +538,7 @@ pub struct EmitterWriter {
546538 ui_testing : bool ,
547539 terminal_width : Option < usize > ,
548540
549- external_macro_backtrace : bool ,
541+ macro_backtrace : bool ,
550542}
551543
552544#[ derive( Debug ) ]
@@ -563,7 +555,7 @@ impl EmitterWriter {
563555 short_message : bool ,
564556 teach : bool ,
565557 terminal_width : Option < usize > ,
566- external_macro_backtrace : bool ,
558+ macro_backtrace : bool ,
567559 ) -> EmitterWriter {
568560 let dst = Destination :: from_stderr ( color_config) ;
569561 EmitterWriter {
@@ -573,7 +565,7 @@ impl EmitterWriter {
573565 teach,
574566 ui_testing : false ,
575567 terminal_width,
576- external_macro_backtrace ,
568+ macro_backtrace ,
577569 }
578570 }
579571
@@ -584,7 +576,7 @@ impl EmitterWriter {
584576 teach : bool ,
585577 colored : bool ,
586578 terminal_width : Option < usize > ,
587- external_macro_backtrace : bool ,
579+ macro_backtrace : bool ,
588580 ) -> EmitterWriter {
589581 EmitterWriter {
590582 dst : Raw ( dst, colored) ,
@@ -593,7 +585,7 @@ impl EmitterWriter {
593585 teach,
594586 ui_testing : false ,
595587 terminal_width,
596- external_macro_backtrace ,
588+ macro_backtrace ,
597589 }
598590 }
599591
0 commit comments