mirror of https://github.com/rust-lang/rust.git
rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.
This commit is contained in:
parent
ab080973cb
commit
4c7eb59e81
|
@ -26,6 +26,7 @@ use std::borrow::Cow;
|
|||
use std::cmp::{max, min, Reverse};
|
||||
use std::io;
|
||||
use std::io::prelude::*;
|
||||
use std::iter;
|
||||
use std::path::Path;
|
||||
use termcolor::{Ansi, BufferWriter, ColorChoice, ColorSpec, StandardStream};
|
||||
use termcolor::{Buffer, Color, WriteColor};
|
||||
|
@ -279,20 +280,41 @@ pub trait Emitter {
|
|||
level: &Level,
|
||||
backtrace: bool,
|
||||
) {
|
||||
let mut external_spans_updated = false;
|
||||
// Check for spans in macros, before `fix_multispans_in_extern_macros`
|
||||
// has a chance to replace them.
|
||||
let has_macro_spans = iter::once(&*span)
|
||||
.chain(children.iter().map(|child| &child.span))
|
||||
.flat_map(|span| span.primary_spans())
|
||||
.copied()
|
||||
.flat_map(|sp| {
|
||||
sp.macro_backtrace().filter_map(|expn_data| {
|
||||
match expn_data.kind {
|
||||
ExpnKind::Root => None,
|
||||
|
||||
// Skip past non-macro entries, just in case there
|
||||
// are some which do actually involve macros.
|
||||
ExpnKind::Desugaring(..) | ExpnKind::AstPass(..) => None,
|
||||
|
||||
ExpnKind::Macro(macro_kind, _) => Some(macro_kind),
|
||||
}
|
||||
})
|
||||
})
|
||||
.next();
|
||||
|
||||
if !backtrace {
|
||||
external_spans_updated =
|
||||
self.fix_multispans_in_extern_macros(source_map, span, children);
|
||||
self.fix_multispans_in_extern_macros(source_map, span, children);
|
||||
}
|
||||
|
||||
self.render_multispans_macro_backtrace(span, children, backtrace);
|
||||
|
||||
if !backtrace {
|
||||
if external_spans_updated {
|
||||
if let Some(macro_kind) = has_macro_spans {
|
||||
let msg = format!(
|
||||
"this {} originates in a macro outside of the current crate \
|
||||
"this {} originates in {} {} \
|
||||
(in Nightly builds, run with -Z macro-backtrace for more info)",
|
||||
level,
|
||||
macro_kind.article(),
|
||||
macro_kind.descr(),
|
||||
);
|
||||
|
||||
children.push(SubDiagnostic {
|
||||
|
@ -311,9 +333,8 @@ pub trait Emitter {
|
|||
children: &mut Vec<SubDiagnostic>,
|
||||
backtrace: bool,
|
||||
) {
|
||||
self.render_multispan_macro_backtrace(span, backtrace);
|
||||
for child in children.iter_mut() {
|
||||
self.render_multispan_macro_backtrace(&mut child.span, backtrace);
|
||||
for span in iter::once(span).chain(children.iter_mut().map(|child| &mut child.span)) {
|
||||
self.render_multispan_macro_backtrace(span, backtrace);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -386,6 +407,7 @@ pub trait Emitter {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (label_span, label_text) in new_labels {
|
||||
span.push_span_label(label_span, label_text);
|
||||
}
|
||||
|
@ -399,12 +421,10 @@ pub trait Emitter {
|
|||
source_map: &Option<Lrc<SourceMap>>,
|
||||
span: &mut MultiSpan,
|
||||
children: &mut Vec<SubDiagnostic>,
|
||||
) -> bool {
|
||||
let mut spans_updated = self.fix_multispan_in_extern_macros(source_map, span);
|
||||
for child in children.iter_mut() {
|
||||
spans_updated |= self.fix_multispan_in_extern_macros(source_map, &mut child.span);
|
||||
) {
|
||||
for span in iter::once(span).chain(children.iter_mut().map(|child| &mut child.span)) {
|
||||
self.fix_multispan_in_extern_macros(source_map, span);
|
||||
}
|
||||
spans_updated
|
||||
}
|
||||
|
||||
// This "fixes" MultiSpans that contain Spans that are pointing to locations inside of
|
||||
|
@ -414,10 +434,10 @@ pub trait Emitter {
|
|||
&self,
|
||||
source_map: &Option<Lrc<SourceMap>>,
|
||||
span: &mut MultiSpan,
|
||||
) -> bool {
|
||||
) {
|
||||
let sm = match source_map {
|
||||
Some(ref sm) => sm,
|
||||
None => return false,
|
||||
None => return,
|
||||
};
|
||||
|
||||
// First, find all the spans in <*macros> and point instead at their use site
|
||||
|
@ -438,12 +458,9 @@ pub trait Emitter {
|
|||
.collect();
|
||||
|
||||
// After we have them, make sure we replace these 'bad' def sites with their use sites
|
||||
let spans_updated = !replacements.is_empty();
|
||||
for (from, to) in replacements {
|
||||
span.replace(from, to);
|
||||
}
|
||||
|
||||
spans_updated
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -175,4 +175,5 @@ LL | f!("Foo\nbar [BarF] bar\nbaz");
|
|||
bar [BarF] bar
|
||||
^^^^
|
||||
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
|
||||
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ LL | #[derive(HashStable)]
|
|||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ LL | custom_lint_pass_macro!();
|
|||
| -------------------------- in this macro invocation
|
||||
|
|
||||
= help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | static A: usize = 0;
|
|||
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
= note: required by `std::alloc::GlobalAlloc::alloc`
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied
|
||||
--> $DIR/not-an-allocator.rs:2:1
|
||||
|
@ -13,6 +14,7 @@ LL | static A: usize = 0;
|
|||
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
= note: required by `std::alloc::GlobalAlloc::dealloc`
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied
|
||||
--> $DIR/not-an-allocator.rs:2:1
|
||||
|
@ -21,6 +23,7 @@ LL | static A: usize = 0;
|
|||
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
= note: required by `std::alloc::GlobalAlloc::realloc`
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied
|
||||
--> $DIR/not-an-allocator.rs:2:1
|
||||
|
@ -29,6 +32,7 @@ LL | static A: usize = 0;
|
|||
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
= note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ LL | static A: System = System;
|
|||
LL | #[global_allocator]
|
||||
LL | static B: System = System;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot define a new global allocator
|
||||
|
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ LL | x.x[0];
|
|||
| ------ borrow later used here
|
||||
|
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | static settings_dir: String = format!("");
|
|||
|
|
||||
= 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
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ LL | aaa!(D);
|
|||
...
|
||||
LL | sss!();
|
||||
| ------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: requires at least a format string argument
|
|||
LL | format!();
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: expected token: `,`
|
||||
--> $DIR/bad-format-args.rs:3:16
|
||||
|
|
|
@ -3,6 +3,8 @@ error[E0600]: cannot apply unary operator `!` to type `&'static str`
|
|||
|
|
||||
LL | assert!("foo");
|
||||
| ^^^^^^^^^^^^^^^ cannot apply unary operator `!`
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -60,6 +60,8 @@ LL | #[cfg(feature = $expr)]
|
|||
...
|
||||
LL | generate_s10!(concat!("nonexistent"));
|
||||
| -------------------------------------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 10 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ LL | #[cfg_attr(all(), unknown)]
|
|||
...
|
||||
LL | foo!();
|
||||
| ------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | println!("{:?}", [0_usize; 33]);
|
|||
|
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[usize; 33]`
|
||||
= note: required by `std::fmt::Debug::fmt`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: arrays only have std trait implementations for lengths 0..=32
|
||||
--> $DIR/core-traits-no-impls-length-33.rs:10:16
|
||||
|
|
|
@ -15,6 +15,7 @@ LL | struct S<T: Debug, const N: usize>([T; N]);
|
|||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[T; _]`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[T; _]`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ LL | a: [u32; N],
|
|||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[u32; _]`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[u32; _]`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ LL | assert_eq!(Y, 4);
|
|||
| |
|
||||
| referenced constant has errors
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0080]: evaluation of constant expression failed
|
||||
--> $DIR/const_fn_ptr_fail2.rs:22:5
|
||||
|
@ -22,7 +22,7 @@ LL | assert_eq!(Z, 4);
|
|||
| |
|
||||
| referenced constant has errors
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL | pub const Z: () = panic!("cheese");
|
|||
| the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:19
|
||||
|
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $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
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $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
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL | const Z: () = panic!("cheese");
|
|||
| the evaluated program panicked at 'cheese', $DIR/const_panic_libcore.rs:5:15
|
||||
|
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $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
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $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
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL | const Z: () = panic!("cheese");
|
|||
| the evaluated program panicked at 'cheese', $DIR/const_panic_libcore_main.rs:9:15
|
||||
|
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $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
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $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
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const Z: () = panic!("cheese");
|
|||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/51999
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0658]: panicking in constants is unstable
|
||||
--> $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
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0658]: panicking in constants is unstable
|
||||
--> $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
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ note: the lint level is defined here
|
|||
|
|
||||
LL | #![warn(const_err)]
|
||||
| ^^^^^^^^^
|
||||
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0080]: erroneous constant used
|
||||
--> $DIR/panic-assoc-never-type.rs:16:13
|
||||
|
|
|
@ -11,7 +11,7 @@ note: the lint level is defined here
|
|||
|
|
||||
LL | #![warn(const_err)]
|
||||
| ^^^^^^^^^
|
||||
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0080]: erroneous constant used
|
||||
--> $DIR/panic-never-type.rs:12:13
|
||||
|
|
|
@ -5,7 +5,7 @@ LL | static_assert!(2 + 2 == 5);
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
|
||||
|
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL | const _: () = assert!(false);
|
|||
| the evaluated program panicked at 'assertion failed: false', $DIR/assert.rs:12:15
|
||||
|
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const _: () = assert!(true);
|
|||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/51999
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0658]: panicking in constants is unstable
|
||||
--> $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
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | const _: () = assert!(true);
|
|||
|
|
||||
= 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
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0658]: `if` is not allowed in a `const`
|
||||
--> $DIR/assert.rs:12:15
|
||||
|
@ -15,6 +16,7 @@ LL | const _: () = assert!(false);
|
|||
|
|
||||
= 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
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | const _: () = assert!(true);
|
|||
|
|
||||
= 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
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0658]: `if` is not allowed in a `const`
|
||||
--> $DIR/assert.rs:12:15
|
||||
|
@ -15,6 +16,7 @@ LL | const _: () = assert!(false);
|
|||
|
|
||||
= 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
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ LL | Drop = assert_eq!(1, 1)
|
|||
|
|
||||
= note: `if` expressions without `else` evaluate to `()`
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | Drop = assert_eq!(1, 1)
|
|||
|
|
||||
= 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
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0658]: `if` is not allowed in a `const`
|
||||
--> $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
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0658]: `match` is not allowed in a `const`
|
||||
--> $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
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0317]: `if` may be missing an `else` clause
|
||||
--> $DIR/issue-50577.rs:7:16
|
||||
|
@ -39,7 +39,7 @@ LL | Drop = assert_eq!(1, 1)
|
|||
|
|
||||
= note: `if` expressions without `else` evaluate to `()`
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL | const _: bool = true || panic!();
|
|||
| the evaluated program panicked at 'explicit panic', $DIR/short-circuit.rs:10:25
|
||||
|
|
||||
= 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 macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $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
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | B = T,
|
|||
LL | | }
|
||||
| |_- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
|
||||
|
|
||||
LL | $( $v = $s::V.try_into().unwrap(), )*
|
||||
|
@ -27,6 +28,7 @@ LL | | B = T,
|
|||
LL | | }
|
||||
| |_- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
|
||||
|
|
||||
LL | $( $v = $s::V.try_into().unwrap(), )*
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | vec![1, 2, 3]
|
|||
|
|
||||
= 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
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: 1 positional argument in format string, but no arguments were given
|
|||
LL | myprintln!("{}");
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ LL | _
|
|||
|
|
||||
LL | underscore!();
|
||||
| -------------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | fn wrong_kind(){}
|
|||
| ^^^^^^^^^^^^^^^^^ the trait `example_runner::Testable` is not implemented for `test::TestDescAndFn`
|
||||
|
|
||||
= note: required for the cast to the object type `dyn example_runner::Testable`
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: the lint level is defined here
|
|||
|
|
||||
LL | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: the lint level is defined here
|
|||
|
|
||||
LL | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@ LL | ($x:expr) => { &$x }
|
|||
...
|
||||
LL | foo3(borrow!(0));
|
||||
| ---------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/deref-suggestion.rs:36:5
|
||||
|
@ -49,7 +51,7 @@ error[E0308]: mismatched types
|
|||
LL | assert_eq!(3i32, &3i32);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&i32`
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/deref-suggestion.rs:39:17
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::clone::Clone::clone`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::clone::Clone::clone`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::clone::Clone::clone`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^ the trait `std::clone::Clone` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::clone::Clone::clone`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | x: Error
|
|||
= note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&Error`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | Error
|
|||
= note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&Error`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | x: Error
|
|||
= note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&Error`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | Error
|
|||
= note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&Error`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^ the trait `std::default::Default` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::default::Default::default`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^ the trait `std::default::Default` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::default::Default::default`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::AssertParamIsEq`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::AssertParamIsEq`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::AssertParamIsEq`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^ the trait `std::cmp::Eq` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::AssertParamIsEq`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ LL | x: Error
|
|||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| - required by this bound in `std::hash::Hash::hash`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ LL | Error
|
|||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| - required by this bound in `std::hash::Hash::hash`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ LL | x: Error
|
|||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| - required by this bound in `std::hash::Hash::hash`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ LL | Error
|
|||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| - required by this bound in `std::hash::Hash::hash`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::Ord::cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::Ord::cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::Ord::cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^ the trait `std::cmp::Ord` is not implemented for `Error`
|
||||
|
|
||||
= note: required by `std::cmp::Ord::cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-enum-struct-variant.rs:13:6
|
||||
|
@ -13,6 +14,7 @@ LL | x: Error
|
|||
| ^^^^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-enum.rs:13:6
|
||||
|
@ -13,6 +14,7 @@ LL | Error
|
|||
| ^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: Error
|
|||
| ^^^^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-struct.rs:12:5
|
||||
|
@ -13,6 +14,7 @@ LL | x: Error
|
|||
| ^^^^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | Error
|
|||
| ^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `Error`
|
||||
--> $DIR/derives-span-PartialEq-tuple-struct.rs:12:5
|
||||
|
@ -13,6 +14,7 @@ LL | Error
|
|||
| ^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `Error`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
|
@ -15,6 +16,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
|
@ -24,6 +26,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
|
@ -33,6 +36,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum-struct-variant.rs:13:6
|
||||
|
@ -42,6 +46,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
|
@ -15,6 +16,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
|
@ -24,6 +26,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
|
@ -33,6 +36,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-enum.rs:13:6
|
||||
|
@ -42,6 +46,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
|
@ -15,6 +16,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
|
@ -24,6 +26,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
|
@ -33,6 +36,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-struct.rs:12:5
|
||||
|
@ -42,6 +46,7 @@ LL | x: Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
|
@ -15,6 +16,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
|
@ -24,6 +26,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
|
@ -33,6 +36,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `Error` with `Error`
|
||||
--> $DIR/derives-span-PartialOrd-tuple-struct.rs:12:5
|
||||
|
@ -42,6 +46,7 @@ LL | Error
|
|||
|
|
||||
= help: the trait `std::cmp::PartialOrd` is not implemented for `Error`
|
||||
= note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | x: NoCloneOrEq
|
|||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `NoCloneOrEq`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0369]: binary operation `!=` cannot be applied to type `NoCloneOrEq`
|
||||
--> $DIR/deriving-no-inner-impl-error-message.rs:5:5
|
||||
|
@ -13,6 +14,7 @@ LL | x: NoCloneOrEq
|
|||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: an implementation of `std::cmp::PartialEq` might be missing for `NoCloneOrEq`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `NoCloneOrEq: std::clone::Clone` is not satisfied
|
||||
--> $DIR/deriving-no-inner-impl-error-message.rs:10:5
|
||||
|
@ -21,6 +23,7 @@ LL | x: NoCloneOrEq
|
|||
| ^^^^^^^^^^^^^^ the trait `std::clone::Clone` is not implemented for `NoCloneOrEq`
|
||||
|
|
||||
= note: required by `std::clone::Clone::clone`
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ LL | #![deny(safe_packed_borrows)]
|
|||
| ^^^^^^^^^^^^^^^^^^^
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: `#[derive]` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
|
||||
--> $DIR/deriving-with-repr-packed.rs:8:23
|
||||
|
@ -20,6 +21,7 @@ LL | #[derive(Copy, Clone, PartialEq, Eq)]
|
|||
|
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
|
||||
--> $DIR/deriving-with-repr-packed.rs:16:10
|
||||
|
@ -29,6 +31,7 @@ LL | #[derive(PartialEq, Eq)]
|
|||
|
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
|
||||
--> $DIR/deriving-with-repr-packed.rs:25:10
|
||||
|
@ -38,6 +41,7 @@ LL | #[derive(PartialEq)]
|
|||
|
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
@ -54,6 +54,8 @@ LL | ($ty: ty) => ($ty::clone(&0))
|
|||
...
|
||||
LL | expr!(u8);
|
||||
| ---------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 9 previous errors
|
||||
|
||||
|
|
|
@ -36,6 +36,8 @@ LL | ($ty: ty) => ($ty::AssocItem)
|
|||
...
|
||||
LL | pat!(u8) => {}
|
||||
| -------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no associated item named `AssocItem` found for slice `[u8]` in the current scope
|
||||
--> $DIR/bad-assoc-pat.rs:3:15
|
||||
|
@ -69,6 +71,8 @@ LL | ($ty: ty) => ($ty::AssocItem)
|
|||
...
|
||||
LL | pat!(u8) => {}
|
||||
| -------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0599]: no associated item named `AssocItem` found for type `u8` in the current scope
|
||||
--> $DIR/bad-assoc-pat.rs:32:16
|
||||
|
|
|
@ -54,6 +54,8 @@ LL | ($ty: ty) => ($ty::AssocTy);
|
|||
...
|
||||
LL | type J = ty!(u8);
|
||||
| ------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0223]: ambiguous associated type
|
||||
--> $DIR/bad-assoc-ty.rs:1:10
|
||||
|
@ -111,6 +113,8 @@ LL | ($ty: ty) => ($ty::AssocTy);
|
|||
...
|
||||
LL | type J = ty!(u8);
|
||||
| ------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0223]: ambiguous associated type
|
||||
--> $DIR/bad-assoc-ty.rs:44:10
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | recurse!(0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9);
|
|||
| -------------------------------------------------- in this macro invocation
|
||||
|
|
||||
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate (`recursion_limit_macro`)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ LL | use a::$crate::b;
|
|||
...
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0432]: unresolved import `a::$crate`
|
||||
--> $DIR/dollar-crate-is-keyword-2.rs:5:13
|
||||
|
@ -15,6 +17,8 @@ LL | use a::$crate;
|
|||
...
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0433]: failed to resolve: `$crate` in paths can only be used in start position
|
||||
--> $DIR/dollar-crate-is-keyword-2.rs:7:21
|
||||
|
@ -24,6 +28,8 @@ LL | type A = a::$crate;
|
|||
...
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ LL | struct $crate {}
|
|||
...
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: expected identifier, found reserved identifier `$crate`
|
||||
--> $DIR/dollar-crate-is-keyword.rs:10:23
|
||||
|
@ -15,6 +17,8 @@ LL | use $crate as $crate;
|
|||
...
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: `$crate` may not be imported
|
||||
--> $DIR/dollar-crate-is-keyword.rs:9:9
|
||||
|
@ -24,6 +28,8 @@ LL | use $crate;
|
|||
...
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: `$crate` may not be imported
|
||||
--> $DIR/dollar-crate-is-keyword.rs:10:9
|
||||
|
@ -33,6 +39,8 @@ LL | use $crate as $crate;
|
|||
...
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: cannot glob-import all possible crates
|
|||
LL | gen_glob!();
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: cannot glob-import all possible crates
|
|||
LL | gen_glob!();
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error[E0432]: unresolved import `E`
|
|||
LL | gen_gated!();
|
||||
| ^^^^^^^^^^^^^ could not find `E` in `{{root}}`
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected identifier, found keyword `async`
|
|||
LL | produces_async! {}
|
||||
| ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: you can escape reserved keywords to use them as identifiers
|
||||
|
|
||||
LL | () => (pub fn r#async () { })
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected identifier, found keyword `async`
|
|||
LL | produces_async! {}
|
||||
| ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: you can escape reserved keywords to use them as identifiers
|
||||
|
|
||||
LL | () => (pub fn r#async () { })
|
||||
|
|
|
@ -3,6 +3,8 @@ error[E0184]: the trait `Copy` may not be implemented for this type; the type ha
|
|||
|
|
||||
LL | #[derive(Copy)]
|
||||
| ^^^^ Copy not allowed on types with destructors
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@ error[E0665]: `Default` cannot be derived for enums, only structs
|
|||
|
|
||||
LL | #[derive(Default)]
|
||||
| ^^^^^^^
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -3,12 +3,16 @@ error[E0184]: the trait `Copy` may not be implemented for this type; the type ha
|
|||
|
|
||||
LL | #[derive(Copy, Clone)]
|
||||
| ^^^^ Copy not allowed on types with destructors
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0184]: the trait `Copy` may not be implemented for this type; the type has a destructor
|
||||
--> $DIR/exclusive-drop-and-copy.rs:10:10
|
||||
|
|
||||
LL | #[derive(Copy, Clone)]
|
||||
| ^^^^ Copy not allowed on types with destructors
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | bar!();
|
|||
| ------- in this macro invocation
|
||||
|
|
||||
= help: add `#![feature(allow_internal_unsafe)]` to the crate attributes to enable
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | bar!();
|
|||
| ------- in this macro invocation
|
||||
|
|
||||
= help: add `#![feature(allow_internal_unstable)]` to the crate attributes to enable
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ error[E0425]: cannot find value `ab` in this scope
|
|||
|
|
||||
LL | concat_idents!(a, b);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@ LL | let ...$e;
|
|||
...
|
||||
LL | mac!(0);
|
||||
| -------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ LL | mac!(0);
|
|||
| -------- in this macro invocation
|
||||
|
|
||||
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0586]: inclusive range with no end
|
||||
--> $DIR/half-open-range-pats-inclusive-no-end.rs:21:19
|
||||
|
@ -51,6 +52,7 @@ LL | mac!(0);
|
|||
| -------- in this macro invocation
|
||||
|
|
||||
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | for<'a> fn(&'a u32, &'a u3
|
|||
|
|
||||
= note: expected enum `std::option::Option<for<'a, 'b> fn(&'a u32, &'b u32) -> &'a u32>`
|
||||
found enum `std::option::Option<for<'a> fn(&'a u32, &'a u32) -> &'a u32>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | for<'a> fn(&'a u32, &'a u32)) }
|
|||
|
|
||||
= note: expected enum `std::option::Option<for<'a, 'b> fn(&'a u32, &'b u32)>`
|
||||
found enum `std::option::Option<for<'a> fn(&'a u32, &'a u32)>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | fn(&'x u32)) }
|
|||
|
|
||||
= note: expected enum `std::option::Option<for<'a> fn(&'a u32)>`
|
||||
found enum `std::option::Option<fn(&'x u32)>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | for<'a> fn(Co<'a>, Co<'a>)) }
|
|||
|
|
||||
= note: expected enum `std::option::Option<for<'a, 'b> fn(Co<'a>, Co<'b>)>`
|
||||
found enum `std::option::Option<for<'a> fn(Co<'a>, Co<'a>)>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | for<'a> fn(Co<'a>, Co<'a>) ->
|
|||
|
|
||||
= note: expected enum `std::option::Option<for<'a, 'b> fn(Co<'a>, Co<'b>) -> Contra<'a>>`
|
||||
found enum `std::option::Option<for<'a> fn(Co<'a>, Co<'a>) -> Contra<'a>>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | for<'a> fn(Contra<'a>, Con
|
|||
|
|
||||
= note: expected enum `std::option::Option<for<'a, 'b> fn(Contra<'a>, Contra<'b>) -> Co<'a>>`
|
||||
found enum `std::option::Option<for<'a> fn(Contra<'a>, Contra<'a>) -> Co<'a>>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ LL | | for<'a> fn(Inv<'a>, Inv<'a>))
|
|||
|
|
||||
= note: expected enum `std::option::Option<for<'a, 'b> fn(Inv<'a>, Inv<'b>)>`
|
||||
found enum `std::option::Option<for<'a> fn(Inv<'a>, Inv<'a>)>`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ LL | | fn(Inv<'y>)) }
|
|||
| |__________________________________________________- in this macro invocation
|
||||
|
|
||||
= help: consider adding the following bound: `'x: 'y`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: lifetime may not live long enough
|
||||
--> $DIR/hr-subtype.rs:39:13
|
||||
|
@ -29,6 +30,7 @@ LL | | fn(Inv<'y>)) }
|
|||
| |__________________________________________________- in this macro invocation
|
||||
|
|
||||
= help: consider adding the following bound: `'x: 'y`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ LL | fn subtype<'x,'y:'x,'z:'y>() {
|
|||
LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
|
||||
LL | | fn(Inv<'y>)) }
|
||||
| |__________________________________________________- in this macro invocation
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/hr-subtype.rs:39:26
|
||||
|
@ -59,6 +60,7 @@ LL | fn supertype<'x,'y:'x,'z:'y>() {
|
|||
LL | / check! { free_inv_x_vs_free_inv_y: (fn(Inv<'x>),
|
||||
LL | | fn(Inv<'y>)) }
|
||||
| |__________________________________________________- in this macro invocation
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ LL | | fn(&'y u32)) }
|
|||
| |__________________________________________- in this macro invocation
|
||||
|
|
||||
= help: consider adding the following bound: `'x: 'y`
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue