rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.

This commit is contained in:
Eduard-Mihai Burtescu 2019-12-15 17:12:30 +02:00
parent 8f286dbf27
commit f6fc80206e
79 changed files with 141 additions and 149 deletions

View file

@ -847,7 +847,13 @@ impl<'a> Builder<'a> {
rustflags.arg("-Zforce-unstable-if-unmarked"); rustflags.arg("-Zforce-unstable-if-unmarked");
} }
rustflags.arg("-Zexternal-macro-backtrace"); // cfg(bootstrap): the flag was renamed from `-Zexternal-macro-backtrace`
// to `-Zmacro-backtrace`, keep only the latter after beta promotion.
if stage == 0 {
rustflags.arg("-Zexternal-macro-backtrace");
} else {
rustflags.arg("-Zmacro-backtrace");
}
let want_rustdoc = self.doc_tests != DocTests::No; let want_rustdoc = self.doc_tests != DocTests::No;

View file

@ -23,7 +23,7 @@ pub struct AnnotateSnippetEmitterWriter {
/// If true, will normalize line numbers with `LL` to prevent noise in UI test diffs. /// If true, will normalize line numbers with `LL` to prevent noise in UI test diffs.
ui_testing: bool, ui_testing: bool,
external_macro_backtrace: bool, macro_backtrace: bool,
} }
impl Emitter for AnnotateSnippetEmitterWriter { impl Emitter for AnnotateSnippetEmitterWriter {
@ -37,7 +37,7 @@ impl Emitter for AnnotateSnippetEmitterWriter {
&mut primary_span, &mut primary_span,
&mut children, &mut children,
&diag.level, &diag.level,
self.external_macro_backtrace, self.macro_backtrace,
); );
self.emit_messages_default( self.emit_messages_default(
@ -172,9 +172,9 @@ impl AnnotateSnippetEmitterWriter {
pub fn new( pub fn new(
source_map: Option<Lrc<SourceMap>>, source_map: Option<Lrc<SourceMap>>,
short_message: bool, short_message: bool,
external_macro_backtrace: bool, macro_backtrace: bool,
) -> Self { ) -> Self {
Self { source_map, short_message, ui_testing: false, external_macro_backtrace } Self { source_map, short_message, ui_testing: false, macro_backtrace }
} }
/// Allows to modify `Self` to enable or disable the `ui_testing` flag. /// Allows to modify `Self` to enable or disable the `ui_testing` flag.

View file

@ -54,19 +54,11 @@ impl HumanReadableErrorType {
source_map: Option<Lrc<SourceMap>>, source_map: Option<Lrc<SourceMap>>,
teach: bool, teach: bool,
terminal_width: Option<usize>, terminal_width: Option<usize>,
external_macro_backtrace: bool, macro_backtrace: bool,
) -> EmitterWriter { ) -> EmitterWriter {
let (short, color_config) = self.unzip(); let (short, color_config) = self.unzip();
let color = color_config.suggests_using_colors(); let color = color_config.suggests_using_colors();
EmitterWriter::new( EmitterWriter::new(dst, source_map, short, teach, color, terminal_width, macro_backtrace)
dst,
source_map,
short,
teach,
color,
terminal_width,
external_macro_backtrace,
)
} }
} }
@ -294,12 +286,12 @@ pub trait Emitter {
if self.fix_multispans_in_extern_macros(source_map, span, children) { if self.fix_multispans_in_extern_macros(source_map, span, children) {
let msg = if level == &Error { let msg = if level == &Error {
"this error originates in a macro outside of the current crate \ "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)" for more info)"
.to_string() .to_string()
} else { } else {
"this warning originates in a macro outside of the current crate \ "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)" for more info)"
.to_string() .to_string()
}; };
@ -467,7 +459,7 @@ impl Emitter for EmitterWriter {
&mut primary_span, &mut primary_span,
&mut children, &mut children,
&diag.level, &diag.level,
self.external_macro_backtrace, self.macro_backtrace,
); );
self.emit_messages_default( self.emit_messages_default(
@ -546,7 +538,7 @@ pub struct EmitterWriter {
ui_testing: bool, ui_testing: bool,
terminal_width: Option<usize>, terminal_width: Option<usize>,
external_macro_backtrace: bool, macro_backtrace: bool,
} }
#[derive(Debug)] #[derive(Debug)]
@ -563,7 +555,7 @@ impl EmitterWriter {
short_message: bool, short_message: bool,
teach: bool, teach: bool,
terminal_width: Option<usize>, terminal_width: Option<usize>,
external_macro_backtrace: bool, macro_backtrace: bool,
) -> EmitterWriter { ) -> EmitterWriter {
let dst = Destination::from_stderr(color_config); let dst = Destination::from_stderr(color_config);
EmitterWriter { EmitterWriter {
@ -573,7 +565,7 @@ impl EmitterWriter {
teach, teach,
ui_testing: false, ui_testing: false,
terminal_width, terminal_width,
external_macro_backtrace, macro_backtrace,
} }
} }
@ -584,7 +576,7 @@ impl EmitterWriter {
teach: bool, teach: bool,
colored: bool, colored: bool,
terminal_width: Option<usize>, terminal_width: Option<usize>,
external_macro_backtrace: bool, macro_backtrace: bool,
) -> EmitterWriter { ) -> EmitterWriter {
EmitterWriter { EmitterWriter {
dst: Raw(dst, colored), dst: Raw(dst, colored),
@ -593,7 +585,7 @@ impl EmitterWriter {
teach, teach,
ui_testing: false, ui_testing: false,
terminal_width, terminal_width,
external_macro_backtrace, macro_backtrace,
} }
} }

View file

@ -36,7 +36,7 @@ pub struct JsonEmitter {
pretty: bool, pretty: bool,
ui_testing: bool, ui_testing: bool,
json_rendered: HumanReadableErrorType, json_rendered: HumanReadableErrorType,
external_macro_backtrace: bool, macro_backtrace: bool,
} }
impl JsonEmitter { impl JsonEmitter {
@ -45,7 +45,7 @@ impl JsonEmitter {
source_map: Lrc<SourceMap>, source_map: Lrc<SourceMap>,
pretty: bool, pretty: bool,
json_rendered: HumanReadableErrorType, json_rendered: HumanReadableErrorType,
external_macro_backtrace: bool, macro_backtrace: bool,
) -> JsonEmitter { ) -> JsonEmitter {
JsonEmitter { JsonEmitter {
dst: Box::new(io::stderr()), dst: Box::new(io::stderr()),
@ -54,14 +54,14 @@ impl JsonEmitter {
pretty, pretty,
ui_testing: false, ui_testing: false,
json_rendered, json_rendered,
external_macro_backtrace, macro_backtrace,
} }
} }
pub fn basic( pub fn basic(
pretty: bool, pretty: bool,
json_rendered: HumanReadableErrorType, json_rendered: HumanReadableErrorType,
external_macro_backtrace: bool, macro_backtrace: bool,
) -> JsonEmitter { ) -> JsonEmitter {
let file_path_mapping = FilePathMapping::empty(); let file_path_mapping = FilePathMapping::empty();
JsonEmitter::stderr( JsonEmitter::stderr(
@ -69,7 +69,7 @@ impl JsonEmitter {
Lrc::new(SourceMap::new(file_path_mapping)), Lrc::new(SourceMap::new(file_path_mapping)),
pretty, pretty,
json_rendered, json_rendered,
external_macro_backtrace, macro_backtrace,
) )
} }
@ -79,7 +79,7 @@ impl JsonEmitter {
source_map: Lrc<SourceMap>, source_map: Lrc<SourceMap>,
pretty: bool, pretty: bool,
json_rendered: HumanReadableErrorType, json_rendered: HumanReadableErrorType,
external_macro_backtrace: bool, macro_backtrace: bool,
) -> JsonEmitter { ) -> JsonEmitter {
JsonEmitter { JsonEmitter {
dst, dst,
@ -88,7 +88,7 @@ impl JsonEmitter {
pretty, pretty,
ui_testing: false, ui_testing: false,
json_rendered, json_rendered,
external_macro_backtrace, macro_backtrace,
} }
} }
@ -245,13 +245,7 @@ impl Diagnostic {
let buf = BufWriter::default(); let buf = BufWriter::default();
let output = buf.clone(); let output = buf.clone();
je.json_rendered je.json_rendered
.new_emitter( .new_emitter(Box::new(buf), Some(je.sm.clone()), false, None, je.macro_backtrace)
Box::new(buf),
Some(je.sm.clone()),
false,
None,
je.external_macro_backtrace,
)
.ui_testing(je.ui_testing) .ui_testing(je.ui_testing)
.emit_diagnostic(diag); .emit_diagnostic(diag);
let output = Arc::try_unwrap(output.0).unwrap().into_inner().unwrap(); let output = Arc::try_unwrap(output.0).unwrap().into_inner().unwrap();

View file

@ -336,9 +336,9 @@ pub struct HandlerFlags {
/// If true, immediately print bugs registered with `delay_span_bug`. /// If true, immediately print bugs registered with `delay_span_bug`.
/// (rustc: see `-Z report-delayed-bugs`) /// (rustc: see `-Z report-delayed-bugs`)
pub report_delayed_bugs: bool, pub report_delayed_bugs: bool,
/// show macro backtraces even for non-local macros. /// Show macro backtraces.
/// (rustc: see `-Z external-macro-backtrace`) /// (rustc: see `-Z macro-backtrace`)
pub external_macro_backtrace: bool, pub macro_backtrace: bool,
/// If true, identical diagnostics are reported only once. /// If true, identical diagnostics are reported only once.
pub deduplicate_diagnostics: bool, pub deduplicate_diagnostics: bool,
} }
@ -385,7 +385,7 @@ impl Handler {
false, false,
false, false,
None, None,
flags.external_macro_backtrace, flags.macro_backtrace,
)); ));
Self::with_emitter_and_flags(emitter, flags) Self::with_emitter_and_flags(emitter, flags)
} }

View file

@ -624,7 +624,7 @@ impl DebuggingOptions {
treat_err_as_bug: self.treat_err_as_bug, treat_err_as_bug: self.treat_err_as_bug,
dont_buffer_diagnostics: self.dont_buffer_diagnostics, dont_buffer_diagnostics: self.dont_buffer_diagnostics,
report_delayed_bugs: self.report_delayed_bugs, report_delayed_bugs: self.report_delayed_bugs,
external_macro_backtrace: self.external_macro_backtrace, macro_backtrace: self.macro_backtrace,
deduplicate_diagnostics: self.deduplicate_diagnostics.unwrap_or(true), deduplicate_diagnostics: self.deduplicate_diagnostics.unwrap_or(true),
} }
} }

View file

@ -776,8 +776,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"treat error number `val` that occurs as bug"), "treat error number `val` that occurs as bug"),
report_delayed_bugs: bool = (false, parse_bool, [TRACKED], report_delayed_bugs: bool = (false, parse_bool, [TRACKED],
"immediately print bugs registered with `delay_span_bug`"), "immediately print bugs registered with `delay_span_bug`"),
external_macro_backtrace: bool = (false, parse_bool, [UNTRACKED], macro_backtrace: bool = (false, parse_bool, [UNTRACKED],
"show macro backtraces even for non-local macros"), "show macro backtraces"),
teach: bool = (false, parse_bool, [TRACKED], teach: bool = (false, parse_bool, [TRACKED],
"show extended diagnostic help"), "show extended diagnostic help"),
terminal_width: Option<usize> = (None, parse_opt_uint, [UNTRACKED], terminal_width: Option<usize> = (None, parse_opt_uint, [UNTRACKED],

View file

@ -858,7 +858,7 @@ fn default_emitter(
source_map: &Lrc<source_map::SourceMap>, source_map: &Lrc<source_map::SourceMap>,
emitter_dest: Option<Box<dyn Write + Send>>, emitter_dest: Option<Box<dyn Write + Send>>,
) -> Box<dyn Emitter + sync::Send> { ) -> Box<dyn Emitter + sync::Send> {
let external_macro_backtrace = sopts.debugging_opts.external_macro_backtrace; let macro_backtrace = sopts.debugging_opts.macro_backtrace;
match (sopts.error_format, emitter_dest) { match (sopts.error_format, emitter_dest) {
(config::ErrorOutputType::HumanReadable(kind), dst) => { (config::ErrorOutputType::HumanReadable(kind), dst) => {
let (short, color_config) = kind.unzip(); let (short, color_config) = kind.unzip();
@ -867,7 +867,7 @@ fn default_emitter(
let emitter = AnnotateSnippetEmitterWriter::new( let emitter = AnnotateSnippetEmitterWriter::new(
Some(source_map.clone()), Some(source_map.clone()),
short, short,
external_macro_backtrace, macro_backtrace,
); );
Box::new(emitter.ui_testing(sopts.debugging_opts.ui_testing())) Box::new(emitter.ui_testing(sopts.debugging_opts.ui_testing()))
} else { } else {
@ -878,7 +878,7 @@ fn default_emitter(
short, short,
sopts.debugging_opts.teach, sopts.debugging_opts.teach,
sopts.debugging_opts.terminal_width, sopts.debugging_opts.terminal_width,
external_macro_backtrace, macro_backtrace,
), ),
Some(dst) => EmitterWriter::new( Some(dst) => EmitterWriter::new(
dst, dst,
@ -887,7 +887,7 @@ fn default_emitter(
false, // no teach messages when writing to a buffer false, // no teach messages when writing to a buffer
false, // no colors when writing to a buffer false, // no colors when writing to a buffer
None, // no terminal width None, // no terminal width
external_macro_backtrace, macro_backtrace,
), ),
}; };
Box::new(emitter.ui_testing(sopts.debugging_opts.ui_testing())) Box::new(emitter.ui_testing(sopts.debugging_opts.ui_testing()))
@ -899,7 +899,7 @@ fn default_emitter(
source_map.clone(), source_map.clone(),
pretty, pretty,
json_rendered, json_rendered,
external_macro_backtrace, macro_backtrace,
) )
.ui_testing(sopts.debugging_opts.ui_testing()), .ui_testing(sopts.debugging_opts.ui_testing()),
), ),
@ -910,7 +910,7 @@ fn default_emitter(
source_map.clone(), source_map.clone(),
pretty, pretty,
json_rendered, json_rendered,
external_macro_backtrace, macro_backtrace,
) )
.ui_testing(sopts.debugging_opts.ui_testing()), .ui_testing(sopts.debugging_opts.ui_testing()),
), ),

View file

@ -9,7 +9,7 @@ LL | x.x[0];
| ------ borrow later used here | ------ borrow later used here
| |
= note: consider using a `let` binding to create a longer lived value = note: consider using a `let` binding to create a longer lived value
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -6,7 +6,7 @@ LL | static settings_dir: String = format!("");
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/49146 = note: for more information, see https://github.com/rust-lang/rust/issues/49146
= help: add `#![feature(const_if_match)]` to the crate attributes to enable = help: add `#![feature(const_if_match)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error: requires at least a format string argument
LL | format!(); LL | format!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected token: `,` error: expected token: `,`
--> $DIR/bad-format-args.rs:3:16 --> $DIR/bad-format-args.rs:3:16

View file

@ -12,7 +12,7 @@ LL | assert_eq!(Y, 4);
| | | |
| referenced constant has errors | referenced constant has errors
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant expression failed error[E0080]: evaluation of constant expression failed
--> $DIR/const_fn_ptr_fail2.rs:22:5 --> $DIR/const_fn_ptr_fail2.rs:22:5
@ -22,7 +22,7 @@ LL | assert_eq!(Z, 4);
| | | |
| referenced constant has errors | referenced constant has errors
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -7,7 +7,7 @@ LL | pub const Z: () = panic!("cheese");
| the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:19 | the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:19
| |
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: any use of this value will cause an error error: any use of this value will cause an error
--> $DIR/const_panic.rs:7:19 --> $DIR/const_panic.rs:7:19
@ -17,7 +17,7 @@ LL | pub const Y: () = unreachable!();
| | | |
| the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:7:19 | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:7:19
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: any use of this value will cause an error error: any use of this value will cause an error
--> $DIR/const_panic.rs:10:19 --> $DIR/const_panic.rs:10:19
@ -27,7 +27,7 @@ LL | pub const X: () = unimplemented!();
| | | |
| the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:10:19 | the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:10:19
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors error: aborting due to 3 previous errors

View file

@ -7,7 +7,7 @@ LL | const Z: () = panic!("cheese");
| the evaluated program panicked at 'cheese', $DIR/const_panic_libcore.rs:5:15 | the evaluated program panicked at 'cheese', $DIR/const_panic_libcore.rs:5:15
| |
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: any use of this value will cause an error error: any use of this value will cause an error
--> $DIR/const_panic_libcore.rs:8:15 --> $DIR/const_panic_libcore.rs:8:15
@ -17,7 +17,7 @@ LL | const Y: () = unreachable!();
| | | |
| the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_libcore.rs:8:15 | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_libcore.rs:8:15
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: any use of this value will cause an error error: any use of this value will cause an error
--> $DIR/const_panic_libcore.rs:11:15 --> $DIR/const_panic_libcore.rs:11:15
@ -27,7 +27,7 @@ LL | const X: () = unimplemented!();
| | | |
| the evaluated program panicked at 'not implemented', $DIR/const_panic_libcore.rs:11:15 | the evaluated program panicked at 'not implemented', $DIR/const_panic_libcore.rs:11:15
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors error: aborting due to 3 previous errors

View file

@ -7,7 +7,7 @@ LL | const Z: () = panic!("cheese");
| the evaluated program panicked at 'cheese', $DIR/const_panic_libcore_main.rs:9:15 | the evaluated program panicked at 'cheese', $DIR/const_panic_libcore_main.rs:9:15
| |
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: any use of this value will cause an error error: any use of this value will cause an error
--> $DIR/const_panic_libcore_main.rs:12:15 --> $DIR/const_panic_libcore_main.rs:12:15
@ -17,7 +17,7 @@ LL | const Y: () = unreachable!();
| | | |
| the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_libcore_main.rs:12:15 | the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_libcore_main.rs:12:15
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: any use of this value will cause an error error: any use of this value will cause an error
--> $DIR/const_panic_libcore_main.rs:15:15 --> $DIR/const_panic_libcore_main.rs:15:15
@ -27,7 +27,7 @@ LL | const X: () = unimplemented!();
| | | |
| the evaluated program panicked at 'not implemented', $DIR/const_panic_libcore_main.rs:15:15 | the evaluated program panicked at 'not implemented', $DIR/const_panic_libcore_main.rs:15:15
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors error: aborting due to 3 previous errors

View file

@ -6,7 +6,7 @@ LL | const Z: () = panic!("cheese");
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/51999 = note: for more information, see https://github.com/rust-lang/rust/issues/51999
= help: add `#![feature(const_panic)]` to the crate attributes to enable = help: add `#![feature(const_panic)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: panicking in constants is unstable error[E0658]: panicking in constants is unstable
--> $DIR/feature-gate-const_panic.rs:9:15 --> $DIR/feature-gate-const_panic.rs:9:15
@ -16,7 +16,7 @@ LL | const X: () = unimplemented!();
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/51999 = note: for more information, see https://github.com/rust-lang/rust/issues/51999
= help: add `#![feature(const_panic)]` to the crate attributes to enable = help: add `#![feature(const_panic)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: panicking in constants is unstable error[E0658]: panicking in constants is unstable
--> $DIR/feature-gate-const_panic.rs:6:15 --> $DIR/feature-gate-const_panic.rs:6:15
@ -26,7 +26,7 @@ LL | const Y: () = unreachable!();
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/51999 = note: for more information, see https://github.com/rust-lang/rust/issues/51999
= help: add `#![feature(const_panic)]` to the crate attributes to enable = help: add `#![feature(const_panic)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors error: aborting due to 3 previous errors

View file

@ -11,7 +11,7 @@ note: the lint level is defined here
| |
LL | #![warn(const_err)] LL | #![warn(const_err)]
| ^^^^^^^^^ | ^^^^^^^^^
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: erroneous constant used error[E0080]: erroneous constant used
--> $DIR/panic-assoc-never-type.rs:16:13 --> $DIR/panic-assoc-never-type.rs:16:13

View file

@ -11,7 +11,7 @@ note: the lint level is defined here
| |
LL | #![warn(const_err)] LL | #![warn(const_err)]
| ^^^^^^^^^ | ^^^^^^^^^
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: erroneous constant used error[E0080]: erroneous constant used
--> $DIR/panic-never-type.rs:12:13 --> $DIR/panic-never-type.rs:12:13

View file

@ -5,7 +5,7 @@ LL | static_assert!(2 + 2 == 5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
| |
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -7,7 +7,7 @@ LL | const _: () = assert!(false);
| the evaluated program panicked at 'assertion failed: false', $DIR/assert.rs:12:15 | the evaluated program panicked at 'assertion failed: false', $DIR/assert.rs:12:15
| |
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -6,7 +6,7 @@ LL | const _: () = assert!(true);
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/51999 = note: for more information, see https://github.com/rust-lang/rust/issues/51999
= help: add `#![feature(const_panic)]` to the crate attributes to enable = help: add `#![feature(const_panic)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: panicking in constants is unstable error[E0658]: panicking in constants is unstable
--> $DIR/assert.rs:12:15 --> $DIR/assert.rs:12:15
@ -16,7 +16,7 @@ LL | const _: () = assert!(false);
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/51999 = note: for more information, see https://github.com/rust-lang/rust/issues/51999
= help: add `#![feature(const_panic)]` to the crate attributes to enable = help: add `#![feature(const_panic)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -9,7 +9,7 @@ LL | Drop = assert_eq!(1, 1)
| |
= note: `if` expressions without `else` evaluate to `()` = note: `if` expressions without `else` evaluate to `()`
= help: consider adding an `else` block that evaluates to the expected type = help: consider adding an `else` block that evaluates to the expected type
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -6,7 +6,7 @@ LL | Drop = assert_eq!(1, 1)
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/49146 = note: for more information, see https://github.com/rust-lang/rust/issues/49146
= help: add `#![feature(const_if_match)]` to the crate attributes to enable = help: add `#![feature(const_if_match)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: `if` is not allowed in a `const` error[E0658]: `if` is not allowed in a `const`
--> $DIR/issue-50577.rs:7:16 --> $DIR/issue-50577.rs:7:16
@ -16,7 +16,7 @@ LL | Drop = assert_eq!(1, 1)
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/49146 = note: for more information, see https://github.com/rust-lang/rust/issues/49146
= help: add `#![feature(const_if_match)]` to the crate attributes to enable = help: add `#![feature(const_if_match)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: `match` is not allowed in a `const` error[E0658]: `match` is not allowed in a `const`
--> $DIR/issue-50577.rs:7:16 --> $DIR/issue-50577.rs:7:16
@ -26,7 +26,7 @@ LL | Drop = assert_eq!(1, 1)
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/49146 = note: for more information, see https://github.com/rust-lang/rust/issues/49146
= help: add `#![feature(const_if_match)]` to the crate attributes to enable = help: add `#![feature(const_if_match)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0317]: `if` may be missing an `else` clause error[E0317]: `if` may be missing an `else` clause
--> $DIR/issue-50577.rs:7:16 --> $DIR/issue-50577.rs:7:16
@ -39,7 +39,7 @@ LL | Drop = assert_eq!(1, 1)
| |
= note: `if` expressions without `else` evaluate to `()` = note: `if` expressions without `else` evaluate to `()`
= help: consider adding an `else` block that evaluates to the expected type = help: consider adding an `else` block that evaluates to the expected type
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 4 previous errors error: aborting due to 4 previous errors

View file

@ -7,7 +7,7 @@ LL | const _: bool = true || panic!();
| the evaluated program panicked at 'explicit panic', $DIR/short-circuit.rs:10:25 | the evaluated program panicked at 'explicit panic', $DIR/short-circuit.rs:10:25
| |
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: any use of this value will cause an error error: any use of this value will cause an error
--> $DIR/short-circuit.rs:11:26 --> $DIR/short-circuit.rs:11:26
@ -17,7 +17,7 @@ LL | const _: bool = false && panic!();
| | | |
| the evaluated program panicked at 'explicit panic', $DIR/short-circuit.rs:11:26 | the evaluated program panicked at 'explicit panic', $DIR/short-circuit.rs:11:26
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -6,7 +6,7 @@ LL | vec![1, 2, 3]
| |
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563 = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
= help: add `#![feature(const_fn)]` to the crate attributes to enable = help: add `#![feature(const_fn)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error: 1 positional argument in format string, but no arguments were given
LL | myprintln!("{}"); LL | myprintln!("{}");
| ^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -9,7 +9,7 @@ note: the lint level is defined here
| |
LL | #![deny(deprecated)] LL | #![deny(deprecated)]
| ^^^^^^^^^^ | ^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -9,7 +9,7 @@ note: the lint level is defined here
| |
LL | #![deny(deprecated)] LL | #![deny(deprecated)]
| ^^^^^^^^^^ | ^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -49,7 +49,7 @@ error[E0308]: mismatched types
LL | assert_eq!(3i32, &3i32); LL | assert_eq!(3i32, &3i32);
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&i32` | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&i32`
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types error[E0308]: mismatched types
--> $DIR/deref-suggestion.rs:39:17 --> $DIR/deref-suggestion.rs:39:17

View file

@ -4,7 +4,7 @@ error: cannot glob-import all possible crates
LL | gen_glob!(); LL | gen_glob!();
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error: cannot glob-import all possible crates
LL | gen_glob!(); LL | gen_glob!();
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error[E0432]: unresolved import `E`
LL | gen_gated!(); LL | gen_gated!();
| ^^^^^^^^^^^^^ could not find `E` in `{{root}}` | ^^^^^^^^^^^^^ could not find `E` in `{{root}}`
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error: expected identifier, found keyword `async`
LL | produces_async! {} LL | produces_async! {}
| ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword | ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
help: you can escape reserved keywords to use them as identifiers help: you can escape reserved keywords to use them as identifiers
| |
LL | () => (pub fn r#async () { }) LL | () => (pub fn r#async () { })

View file

@ -4,7 +4,7 @@ error: expected identifier, found keyword `async`
LL | produces_async! {} LL | produces_async! {}
| ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword | ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
help: you can escape reserved keywords to use them as identifiers help: you can escape reserved keywords to use them as identifiers
| |
LL | () => (pub fn r#async () { }) LL | () => (pub fn r#async () { })

View file

@ -4,7 +4,7 @@ error: type `fn() -> u32 {intercrate::foo::bar::f}` is private
LL | assert_eq!(intercrate::foo::m!(), 1); LL | assert_eq!(intercrate::foo::m!(), 1);
| ^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error: cannot find macro `panic` in this scope
LL | assert_eq!(0, 0); LL | assert_eq!(0, 0);
| ^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: use of undeclared type or module `Vec` error[E0433]: failed to resolve: use of undeclared type or module `Vec`
--> $DIR/no_implicit_prelude.rs:11:9 --> $DIR/no_implicit_prelude.rs:11:9

View file

@ -4,7 +4,7 @@ error: `$crate` may not be imported
LL | m!(); LL | m!();
| ^^^^^ | ^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -5,7 +5,7 @@ LL | call_unstable_noallow!();
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^
| |
= help: add `#![feature(function)]` to the crate attributes to enable = help: add `#![feature(function)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'struct_field' error[E0658]: use of unstable library feature 'struct_field'
--> $DIR/internal-unstable-noallow.rs:18:5 --> $DIR/internal-unstable-noallow.rs:18:5
@ -14,7 +14,7 @@ LL | construct_unstable_noallow!(0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
= help: add `#![feature(struct_field)]` to the crate attributes to enable = help: add `#![feature(struct_field)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'method' error[E0658]: use of unstable library feature 'method'
--> $DIR/internal-unstable-noallow.rs:20:35 --> $DIR/internal-unstable-noallow.rs:20:35
@ -23,7 +23,7 @@ LL | |x: internal_unstable::Foo| { call_method_noallow!(x) };
| ^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^
| |
= help: add `#![feature(method)]` to the crate attributes to enable = help: add `#![feature(method)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'struct2_field' error[E0658]: use of unstable library feature 'struct2_field'
--> $DIR/internal-unstable-noallow.rs:22:35 --> $DIR/internal-unstable-noallow.rs:22:35
@ -32,7 +32,7 @@ LL | |x: internal_unstable::Bar| { access_field_noallow!(x) };
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^
| |
= help: add `#![feature(struct2_field)]` to the crate attributes to enable = help: add `#![feature(struct2_field)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 4 previous errors error: aborting due to 4 previous errors

View file

@ -6,7 +6,7 @@ LL | static VEC: [u32; 256] = vec![];
| |
= note: expected array `[u32; 256]` = note: expected array `[u32; 256]`
found struct `std::vec::Vec<_>` found struct `std::vec::Vec<_>`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error[E0282]: type annotations needed
LL | panic!(std::default::Default::default()); LL | panic!(std::default::Default::default());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `M` declared on the function `begin_panic` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `M` declared on the function `begin_panic`
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -11,7 +11,7 @@ note: the lint level is defined here
| |
LL | #![deny(unreachable_code)] LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -6,7 +6,7 @@ LL | static S : u64 = { { panic!("foo"); 0 } };
| |
= note: for more information, see https://github.com/rust-lang/rust/issues/51999 = note: for more information, see https://github.com/rust-lang/rust/issues/51999
= help: add `#![feature(const_panic)]` to the crate attributes to enable = help: add `#![feature(const_panic)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -33,7 +33,7 @@ LL | let sr: Vec<(u32, _, _) = vec![];
| |
= note: expected type `bool` = note: expected type `bool`
found struct `std::vec::Vec<_>` found struct `std::vec::Vec<_>`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0070]: invalid left-hand side of assignment error[E0070]: invalid left-hand side of assignment
--> $DIR/issue-34334.rs:2:29 --> $DIR/issue-34334.rs:2:29

View file

@ -80,7 +80,7 @@ LL | assert_eq!(Foo::Bar, i);
| fn(usize) -> Foo {Foo::Bar} | fn(usize) -> Foo {Foo::Bar}
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `fn(usize) -> Foo {Foo::Bar}` = note: an implementation of `std::cmp::PartialEq` might be missing for `fn(usize) -> Foo {Foo::Bar}`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `std::fmt::Debug` error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `std::fmt::Debug`
--> $DIR/issue-59488.rs:30:5 --> $DIR/issue-59488.rs:30:5
@ -91,7 +91,7 @@ LL | assert_eq!(Foo::Bar, i);
= help: the trait `std::fmt::Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}` = help: the trait `std::fmt::Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&fn(usize) -> Foo {Foo::Bar}` = note: required because of the requirements on the impl of `std::fmt::Debug` for `&fn(usize) -> Foo {Foo::Bar}`
= note: required by `std::fmt::Debug::fmt` = note: required by `std::fmt::Debug::fmt`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `std::fmt::Debug` error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `std::fmt::Debug`
--> $DIR/issue-59488.rs:30:5 --> $DIR/issue-59488.rs:30:5
@ -102,7 +102,7 @@ LL | assert_eq!(Foo::Bar, i);
= help: the trait `std::fmt::Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}` = help: the trait `std::fmt::Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&fn(usize) -> Foo {Foo::Bar}` = note: required because of the requirements on the impl of `std::fmt::Debug` for `&fn(usize) -> Foo {Foo::Bar}`
= note: required by `std::fmt::Debug::fmt` = note: required by `std::fmt::Debug::fmt`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 10 previous errors error: aborting due to 10 previous errors

View file

@ -10,7 +10,7 @@ LL | x.use_mut();
| - borrow later used here | - borrow later used here
| |
= note: consider using a `let` binding to create a longer lived value = note: consider using a `let` binding to create a longer lived value
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -9,7 +9,7 @@ note: the lint level is defined here
| |
LL | #![deny(deprecated)] LL | #![deny(deprecated)]
| ^^^^^^^^^^ | ^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -9,7 +9,7 @@ note: the lint level is defined here
| |
LL | #![deny(deprecated)] LL | #![deny(deprecated)]
| ^^^^^^^^^^ | ^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -1,6 +1,6 @@
// Test that the macro backtrace facility works // Test that the macro backtrace facility works
// aux-build:ping.rs // aux-build:ping.rs
// compile-flags: -Z external-macro-backtrace // compile-flags: -Z macro-backtrace
#[macro_use] extern crate ping; #[macro_use] extern crate ping;

View file

@ -16,7 +16,7 @@ error: macro requires a boolean expression as an argument
LL | debug_assert!(); LL | debug_assert!();
| ^^^^^^^^^^^^^^^^ boolean expression required | ^^^^^^^^^^^^^^^^ boolean expression required
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected expression, found keyword `struct` error: expected expression, found keyword `struct`
--> $DIR/assert.rs:5:19 --> $DIR/assert.rs:5:19

View file

@ -4,7 +4,7 @@ error: requires at least a format string argument
LL | format!(); LL | format!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected expression, found keyword `struct` error: expected expression, found keyword `struct`
--> $DIR/format-parse-errors.rs:5:13 --> $DIR/format-parse-errors.rs:5:13

View file

@ -9,7 +9,7 @@ note: the constant `baz` is defined here
| |
LL | thread_local!(static baz: f64 = 0.0); LL | thread_local!(static baz: f64 = 0.0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -6,5 +6,5 @@ LL | write!(&mut example, "{}", 42);
| |
= note: `-W unused-must-use` implied by `-W unused` = note: `-W unused-must-use` implied by `-W unused`
= note: this `Result` may be an `Err` variant, which should be handled = note: this `Result` may be an `Err` variant, which should be handled
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)

View file

@ -13,7 +13,7 @@ LL | | E::F => "",
LL | | }; LL | | };
| |_____- `match` arms have incompatible types | |_____- `match` arms have incompatible types
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -47,7 +47,7 @@ LL | mac!(bar);
LL | bar.pow(2); LL | bar.pow(2);
| ^^^ | ^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 5 previous errors error: aborting due to 5 previous errors

View file

@ -8,7 +8,7 @@ LL | panic!()
| -------- this returned value is of type `!` | -------- this returned value is of type `!`
| |
= note: the return type of a function must have a statically known size = note: the return type of a function must have a statically known size
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -12,7 +12,7 @@ note: the lint level is defined here
LL | #![warn(unused)] LL | #![warn(unused)]
| ^^^^^^ | ^^^^^^
= note: `#[warn(unreachable_code)]` implied by `#[warn(unused)]` = note: `#[warn(unreachable_code)]` implied by `#[warn(unused)]`
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unreachable call warning: unreachable call
--> $DIR/never-assign-dead-code.rs:10:5 --> $DIR/never-assign-dead-code.rs:10:5

View file

@ -14,7 +14,7 @@ note: `bar` could also refer to the macro defined here
| |
LL | macro_rules! bar { () => {} } LL | macro_rules! bar { () => {} }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error: type `fn() {ext::priv_fn}` is private
LL | ext::m!(); LL | ext::m!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: static `PRIV_STATIC` is private error: static `PRIV_STATIC` is private
--> $DIR/private-inferred-type-3.rs:16:5 --> $DIR/private-inferred-type-3.rs:16:5
@ -12,7 +12,7 @@ error: static `PRIV_STATIC` is private
LL | ext::m!(); LL | ext::m!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: type `ext::PrivEnum` is private error: type `ext::PrivEnum` is private
--> $DIR/private-inferred-type-3.rs:16:5 --> $DIR/private-inferred-type-3.rs:16:5
@ -20,7 +20,7 @@ error: type `ext::PrivEnum` is private
LL | ext::m!(); LL | ext::m!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: type `fn() {<u8 as ext::PrivTrait>::method}` is private error: type `fn() {<u8 as ext::PrivTrait>::method}` is private
--> $DIR/private-inferred-type-3.rs:16:5 --> $DIR/private-inferred-type-3.rs:16:5
@ -28,7 +28,7 @@ error: type `fn() {<u8 as ext::PrivTrait>::method}` is private
LL | ext::m!(); LL | ext::m!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: type `fn(u8) -> ext::PrivTupleStruct {ext::PrivTupleStruct}` is private error: type `fn(u8) -> ext::PrivTupleStruct {ext::PrivTupleStruct}` is private
--> $DIR/private-inferred-type-3.rs:16:5 --> $DIR/private-inferred-type-3.rs:16:5
@ -36,7 +36,7 @@ error: type `fn(u8) -> ext::PrivTupleStruct {ext::PrivTupleStruct}` is private
LL | ext::m!(); LL | ext::m!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: type `fn(u8) -> ext::PubTupleStruct {ext::PubTupleStruct}` is private error: type `fn(u8) -> ext::PubTupleStruct {ext::PubTupleStruct}` is private
--> $DIR/private-inferred-type-3.rs:16:5 --> $DIR/private-inferred-type-3.rs:16:5
@ -44,7 +44,7 @@ error: type `fn(u8) -> ext::PubTupleStruct {ext::PubTupleStruct}` is private
LL | ext::m!(); LL | ext::m!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: type `for<'r> fn(&'r ext::Pub<u8>) {ext::Pub::<u8>::priv_method}` is private error: type `for<'r> fn(&'r ext::Pub<u8>) {ext::Pub::<u8>::priv_method}` is private
--> $DIR/private-inferred-type-3.rs:16:5 --> $DIR/private-inferred-type-3.rs:16:5
@ -52,7 +52,7 @@ error: type `for<'r> fn(&'r ext::Pub<u8>) {ext::Pub::<u8>::priv_method}` is priv
LL | ext::m!(); LL | ext::m!();
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 7 previous errors error: aborting due to 7 previous errors

View file

@ -22,7 +22,7 @@ LL | dollar_crate_external::external!();
| previous definition of the type `D` here | previous definition of the type `D` here
| |
= note: `D` must be defined only once in the type namespace of this module = note: `D` must be defined only once in the type namespace of this module
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -11,7 +11,7 @@ note: the lint level is defined here
| |
LL | #![deny(unreachable_code)] LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -20,7 +20,7 @@ LL | return;
LL | println!("foo"); LL | println!("foo");
| ^^^^^^^^^^^^^^^^ unreachable statement | ^^^^^^^^^^^^^^^^ unreachable statement
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -24,7 +24,7 @@ LL | return;
LL | println!("But I am."); LL | println!("But I am.");
| ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -11,7 +11,7 @@ note: the lint level is defined here
| |
LL | #![deny(unreachable_code)] LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: unreachable statement error: unreachable statement
--> $DIR/expr_loop.rs:21:5 --> $DIR/expr_loop.rs:21:5
@ -21,7 +21,7 @@ LL | loop { return; }
LL | println!("I am dead."); LL | println!("I am dead.");
| ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: unreachable statement error: unreachable statement
--> $DIR/expr_loop.rs:32:5 --> $DIR/expr_loop.rs:32:5
@ -31,7 +31,7 @@ LL | loop { 'middle: loop { loop { break 'middle; } } }
LL | println!("I am dead."); LL | println!("I am dead.");
| ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors error: aborting due to 3 previous errors

View file

@ -11,7 +11,7 @@ note: the lint level is defined here
| |
LL | #![deny(unreachable_code)] LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: unreachable statement error: unreachable statement
--> $DIR/expr_match.rs:19:5 --> $DIR/expr_match.rs:19:5
@ -21,7 +21,7 @@ LL | match () { () if false => return, () => return }
LL | println!("I am dead"); LL | println!("I am dead");
| ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -9,7 +9,7 @@ LL | assert_eq!(*x, 3);
| ------------------ borrow later used here | ------------------ borrow later used here
| |
= note: consider using a `let` binding to create a longer lived value = note: consider using a `let` binding to create a longer lived value
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -8,7 +8,7 @@ LL | let _ = dbg!(a);
LL | let _ = dbg!(a); LL | let _ = dbg!(a);
| ^ value used here after move | ^ value used here after move
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -8,7 +8,7 @@ LL | let _: NotDebug = dbg!(NotDebug);
= note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug` = note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&NotDebug` = note: required because of the requirements on the impl of `std::fmt::Debug` for `&NotDebug`
= note: required by `std::fmt::Debug::fmt` = note: required by `std::fmt::Debug::fmt`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -49,7 +49,7 @@ error[E0308]: mismatched types
LL | s = format!("foo"); LL | s = format!("foo");
| ^^^^^^^^^^^^^^ expected `&mut std::string::String`, found struct `std::string::String` | ^^^^^^^^^^^^^^ expected `&mut std::string::String`, found struct `std::string::String`
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 6 previous errors error: aborting due to 6 previous errors

View file

@ -4,7 +4,7 @@ error[E0308]: mismatched types
LL | stream.write_fmt(format!("message received")) LL | stream.write_fmt(format!("message received"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::fmt::Arguments`, found struct `std::string::String` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::fmt::Arguments`, found struct `std::string::String`
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,7 +10,7 @@ LL | y.use_ref();
| - borrow later used here | - borrow later used here
| |
= note: consider using a `let` binding to create a longer lived value = note: consider using a `let` binding to create a longer lived value
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -9,7 +9,7 @@ LL | | };
| |______expected `&str`, found struct `std::string::String` | |______expected `&str`, found struct `std::string::String`
| in this macro invocation | in this macro invocation
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error[E0308]: mismatched types
LL | assert_eq!(10u64, 10usize); LL | assert_eq!(10u64, 10usize);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `usize` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `usize`
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -33,7 +33,7 @@ LL | writeln!(fp, "hello world").unwrap();
| |
= note: the method `write_fmt` exists but the following trait bounds were not satisfied: = note: the method `write_fmt` exists but the following trait bounds were not satisfied:
`std::io::BufWriter<&dyn std::io::Write> : std::io::Write` `std::io::BufWriter<&dyn std::io::Write> : std::io::Write`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 4 previous errors error: aborting due to 4 previous errors

View file

@ -10,7 +10,7 @@ LL | Some(vec![_x]) => (),
| help: use a slice pattern here instead: `[_x]` | help: use a slice pattern here instead: `[_x]`
| |
= help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html = help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error[E0381]: borrow of possibly-uninitialized variable: `cfg_res`
LL | assert_eq!(cfg_res, 5); LL | assert_eq!(cfg_res, 5);
| ^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `cfg_res` | ^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `cfg_res`
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -11,7 +11,7 @@ LL | let _ = Option:Some(vec![0, 1]);
| |
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>` = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
= note: for more information, see https://github.com/rust-lang/rust/issues/23416 = note: for more information, see https://github.com/rust-lang/rust/issues/23416
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -6,7 +6,7 @@ LL | let x = vec![];
| | | |
| consider giving `x` the explicit type `std::vec::Vec<T>`, where the type parameter `T` is specified | consider giving `x` the explicit type `std::vec::Vec<T>`, where the type parameter `T` is specified
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -6,7 +6,7 @@ LL | let (x, ) = (vec![], );
| | | |
| consider giving this pattern the explicit type `(std::vec::Vec<T>,)`, where the type parameter `T` is specified | consider giving this pattern the explicit type `(std::vec::Vec<T>,)`, where the type parameter `T` is specified
| |
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error

View file

@ -11,7 +11,7 @@ note: the lint level is defined here
| |
LL | #![deny(unreachable_code)] LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error error: aborting due to previous error