diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-12-15 17:12:30 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-02-06 21:32:07 +0200 |
| commit | f6fc80206e9600ae753cdfbd762fb982afca48b0 (patch) | |
| tree | 91bdbf8d40248f5ecc5fa5ea6d66e4c91ece1128 /src/librustc_errors/emitter.rs | |
| parent | 8f286dbf27b61afdd96f632d0bc7f4c49fbb7d0f (diff) | |
rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.
Diffstat (limited to 'src/librustc_errors/emitter.rs')
| -rw-r--r-- | src/librustc_errors/emitter.rs | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index d32b8c689dc..59493b4a683 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -54,19 +54,11 @@ impl HumanReadableErrorType { source_map: Option<Lrc<SourceMap>>, teach: bool, terminal_width: Option<usize>, - external_macro_backtrace: bool, + macro_backtrace: bool, ) -> EmitterWriter { let (short, color_config) = self.unzip(); let color = color_config.suggests_using_colors(); - EmitterWriter::new( - dst, - source_map, - short, - teach, - color, - terminal_width, - external_macro_backtrace, - ) + EmitterWriter::new(dst, source_map, short, teach, color, terminal_width, macro_backtrace) } } @@ -294,12 +286,12 @@ pub trait Emitter { if self.fix_multispans_in_extern_macros(source_map, span, children) { let msg = if level == &Error { "this error originates in a macro outside of the current crate \ - (in Nightly builds, run with -Z external-macro-backtrace \ + (in Nightly builds, run with -Z macro-backtrace \ for more info)" .to_string() } else { "this warning originates in a macro outside of the current crate \ - (in Nightly builds, run with -Z external-macro-backtrace \ + (in Nightly builds, run with -Z macro-backtrace \ for more info)" .to_string() }; @@ -467,7 +459,7 @@ impl Emitter for EmitterWriter { &mut primary_span, &mut children, &diag.level, - self.external_macro_backtrace, + self.macro_backtrace, ); self.emit_messages_default( @@ -546,7 +538,7 @@ pub struct EmitterWriter { ui_testing: bool, terminal_width: Option<usize>, - external_macro_backtrace: bool, + macro_backtrace: bool, } #[derive(Debug)] @@ -563,7 +555,7 @@ impl EmitterWriter { short_message: bool, teach: bool, terminal_width: Option<usize>, - external_macro_backtrace: bool, + macro_backtrace: bool, ) -> EmitterWriter { let dst = Destination::from_stderr(color_config); EmitterWriter { @@ -573,7 +565,7 @@ impl EmitterWriter { teach, ui_testing: false, terminal_width, - external_macro_backtrace, + macro_backtrace, } } @@ -584,7 +576,7 @@ impl EmitterWriter { teach: bool, colored: bool, terminal_width: Option<usize>, - external_macro_backtrace: bool, + macro_backtrace: bool, ) -> EmitterWriter { EmitterWriter { dst: Raw(dst, colored), @@ -593,7 +585,7 @@ impl EmitterWriter { teach, ui_testing: false, terminal_width, - external_macro_backtrace, + macro_backtrace, } } |
