Show macro name in 'this error originates in macro' message

When there are multiple macros in use, it can be difficult to tell
which one was responsible for producing an error.
This commit is contained in:
Aaron Hill 2021-02-13 14:52:25 -05:00
parent 70e52caed9
commit 0dd9f118d9
No known key found for this signature in database
GPG key ID: B4087E510E98B164
350 changed files with 744 additions and 744 deletions

View file

@ -309,8 +309,8 @@ pub trait Emitter {
// are some which do actually involve macros. // are some which do actually involve macros.
ExpnKind::Inlined | ExpnKind::Desugaring(..) | ExpnKind::AstPass(..) => None, ExpnKind::Inlined | ExpnKind::Desugaring(..) | ExpnKind::AstPass(..) => None,
ExpnKind::Macro { kind: macro_kind, name: _, proc_macro: _ } => { ExpnKind::Macro { kind: macro_kind, name, proc_macro: _ } => {
Some(macro_kind) Some((macro_kind, name))
} }
} }
}); });
@ -322,13 +322,12 @@ pub trait Emitter {
self.render_multispans_macro_backtrace(span, children, backtrace); self.render_multispans_macro_backtrace(span, children, backtrace);
if !backtrace { if !backtrace {
if let Some(macro_kind) = has_macro_spans { if let Some((macro_kind, name)) = has_macro_spans {
let descr = macro_kind.descr();
let msg = format!( let msg = format!(
"this {} originates in {} {} \ "this {level} originates in the {descr} `{name}` \
(in Nightly builds, run with -Z macro-backtrace for more info)", (in Nightly builds, run with -Z macro-backtrace for more info)",
level,
macro_kind.article(),
macro_kind.descr(),
); );
children.push(SubDiagnostic { children.push(SubDiagnostic {

View file

@ -6,6 +6,7 @@
#![feature(crate_visibility_modifier)] #![feature(crate_visibility_modifier)]
#![feature(backtrace)] #![feature(backtrace)]
#![feature(extended_key_value_attributes)] #![feature(extended_key_value_attributes)]
#![feature(format_args_capture)]
#![feature(iter_zip)] #![feature(iter_zip)]
#![feature(nll)] #![feature(nll)]

View file

@ -96,7 +96,7 @@ LL | f!("Foo\nbar [BarF] bar\nbaz");
^^^^ ^^^^
= note: no item named `BarF` in scope = note: no item named `BarF` in scope
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unresolved link to `error` warning: unresolved link to `error`
--> $DIR/warning.rs:58:30 --> $DIR/warning.rs:58:30

View file

@ -42,7 +42,7 @@ LL | #[derive(HashStable)]
| |
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable = 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) = note: this error originates in the derive macro `HashStable` (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

@ -21,7 +21,7 @@ LL | custom_lint_pass_macro!();
| -------------------------- in this macro invocation | -------------------------- in this macro invocation
| |
= help: try using `declare_lint_pass!` or `impl_lint_pass!` instead = 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) = note: this error originates in the macro `custom_lint_pass_macro` (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

@ -62,7 +62,7 @@ LL | #[message = "This is missing a closing brace: {name"]
| ^ expected `'}'` in format string | ^ expected `'}'` in format string
| |
= note: if you intended to print `{`, you can escape it using `{{` = note: if you intended to print `{`, you can escape it using `{{`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `SessionDiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid format string: unmatched `}` found error: invalid format string: unmatched `}` found
--> $DIR/session-derive-errors.rs:119:1 --> $DIR/session-derive-errors.rs:119:1
@ -71,7 +71,7 @@ LL | #[message = "This is missing an opening brace: name}"]
| ^ unmatched `}` in format string | ^ unmatched `}` in format string
| |
= note: if you intended to print `}`, you can escape it using `}}` = note: if you intended to print `}`, you can escape it using `}}`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `SessionDiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
error: The `#[label = ...]` attribute can only be applied to fields of type Span error: The `#[label = ...]` attribute can only be applied to fields of type Span
--> $DIR/session-derive-errors.rs:138:5 --> $DIR/session-derive-errors.rs:138:5

View file

@ -5,7 +5,7 @@ LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize` | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
| |
= note: required by `std::alloc::GlobalAlloc::alloc` = 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) = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
--> $DIR/not-an-allocator.rs:2:1 --> $DIR/not-an-allocator.rs:2:1
@ -14,7 +14,7 @@ LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize` | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
| |
= note: required by `std::alloc::GlobalAlloc::dealloc` = 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) = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
--> $DIR/not-an-allocator.rs:2:1 --> $DIR/not-an-allocator.rs:2:1
@ -23,7 +23,7 @@ LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize` | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
| |
= note: required by `std::alloc::GlobalAlloc::realloc` = 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) = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
--> $DIR/not-an-allocator.rs:2:1 --> $DIR/not-an-allocator.rs:2:1
@ -32,7 +32,7 @@ LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize` | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
| |
= note: required by `std::alloc::GlobalAlloc::alloc_zeroed` = 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) = note: this error originates in the attribute macro `global_allocator` (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 | #[global_allocator]
LL | static B: System = System; LL | static B: System = System;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot define a new global allocator | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 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) = note: this error originates in the attribute macro `global_allocator` (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 | | pure nomem readonly preserves_flags
LL | | noreturn nostack att_syntax options); LL | | noreturn nostack att_syntax options);
| |____________________________________________- in this macro invocation | |____________________________________________- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error: the `pure` and `noreturn` options are mutually exclusive error: the `pure` and `noreturn` options are mutually exclusive
--> $DIR/interpolated-idents.rs:13:13 --> $DIR/interpolated-idents.rs:13:13
@ -22,7 +22,7 @@ LL | | pure nomem readonly preserves_flags
LL | | noreturn nostack att_syntax options); LL | | noreturn nostack att_syntax options);
| |____________________________________________- in this macro invocation | |____________________________________________- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error: asm outputs are not allowed with the `noreturn` option error: asm outputs are not allowed with the `noreturn` option
--> $DIR/interpolated-idents.rs:10:32 --> $DIR/interpolated-idents.rs:10:32
@ -45,7 +45,7 @@ LL | | noreturn nostack att_syntax options);
| |____________________________________________in this macro invocation | |____________________________________________in this macro invocation
| in this macro invocation | in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (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

@ -233,7 +233,7 @@ LL | llvm_asm!("");
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #32408 <https://github.com/rust-lang/rust/issues/32408> = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
= help: use the new asm! syntax specified in RFC 2873 = help: use the new asm! syntax specified in RFC 2873
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this warning originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: naked functions must contain a single asm block warning: naked functions must contain a single asm block
--> $DIR/naked-functions.rs:108:1 --> $DIR/naked-functions.rs:108:1

View file

@ -154,7 +154,7 @@ error: asm template must be a string literal
LL | asm!(format!("{{{}}}", 0), in(reg) foo); LL | asm!(format!("{{{}}}", 0), in(reg) foo);
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
error: asm template must be a string literal error: asm template must be a string literal
--> $DIR/parse-error.rs:62:21 --> $DIR/parse-error.rs:62:21
@ -162,7 +162,7 @@ error: asm template must be a string literal
LL | asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar); LL | asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar);
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0435]: attempt to use a non-constant value in a constant error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/parse-error.rs:37:37 --> $DIR/parse-error.rs:37:37

View file

@ -27,7 +27,7 @@ LL | asm!("{}", in(reg) vec![0]);
| ^^^^^^^ | ^^^^^^^
| |
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot use value of type `(i32, i32, i32)` for inline assembly error: cannot use value of type `(i32, i32, i32)` for inline assembly
--> $DIR/type-check-2.rs:70:28 --> $DIR/type-check-2.rs:70:28

View file

@ -24,7 +24,7 @@ LL | assert_eq!(<() as Tr>::B, 0); // causes the error above
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert_eq` (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 @@ LL | b!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: labels are unreachable through functions, closures, async blocks and modules = note: labels are unreachable through functions, closures, async blocks and modules
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `b` (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

@ -13,7 +13,7 @@ LL | bug!("bug" + stringify!(found));
LL | bug!(); LL | bug!();
| ------- in this macro invocation | ------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `bug` (in Nightly builds, run with -Z macro-backtrace for more info)
error: unexpected token: `{ error: unexpected token: `{
let res = let res =
@ -33,7 +33,7 @@ LL | doc_comment! {format!("{coor}", coor = stringify!($t1)).as_str()}
LL | some_macro!(u8); LL | some_macro!(u8);
| ---------------- in this macro invocation | ---------------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `some_macro` (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 | #[repr(align($n))]
LL | pass_nonterminal!(n!()); LL | pass_nonterminal!(n!());
| ------------------------ in this macro invocation | ------------------------ in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `pass_nonterminal` (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 | assert_eq!(foo, y);
| for<'r> fn(&'r i32) -> &'r i32 {foo} | for<'r> fn(&'r i32) -> &'r i32 {foo}
| _ | _
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `for<'r> fn(&'r i32) -> &'r i32 {foo}` doesn't implement `Debug` error[E0277]: `for<'r> fn(&'r i32) -> &'r i32 {foo}` doesn't implement `Debug`
--> $DIR/issue-77910-1.rs:8:5 --> $DIR/issue-77910-1.rs:8:5
@ -21,7 +21,7 @@ LL | T: fmt::Debug + ?Sized,
| ---------- required by this bound in `core::panicking::assert_failed` | ---------- required by this bound in `core::panicking::assert_failed`
| |
= help: the trait `Debug` is not implemented for `for<'r> fn(&'r i32) -> &'r i32 {foo}` = help: the trait `Debug` is not implemented for `for<'r> fn(&'r i32) -> &'r i32 {foo}`
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert_eq` (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 | 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `vec` (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 | r.get_size(width!(self))
| | | |
| borrow later used by call | borrow later used by call
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `width` (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 @@ error[E0015]: calls in statics are limited to constant functions, tuple structs
LL | static settings_dir: String = format!(""); LL | static settings_dir: String = format!("");
| ^^^^^^^^^^^ | ^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
--> $DIR/issue-64453.rs:4:31 --> $DIR/issue-64453.rs:4:31
@ -18,7 +18,7 @@ error[E0015]: calls in statics are limited to constant functions, tuple structs
LL | static settings_dir: String = format!(""); LL | static settings_dir: String = format!("");
| ^^^^^^^^^^^ | ^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `format` (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

@ -12,7 +12,7 @@ LL | let a = $c;
LL | sss!(); LL | sss!();
| ------- in this macro invocation | ------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `aaa` (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 | println!("{:?}", t);
| ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `Debug` | ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `Debug`
| |
= note: required by `std::fmt::Debug::fmt` = 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) = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider further restricting this bound help: consider further restricting this bound
| |
LL | fn test_impl(t: impl Sized + std::fmt::Debug) { LL | fn test_impl(t: impl Sized + std::fmt::Debug) {
@ -18,7 +18,7 @@ LL | println!("{:?}", t);
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug` | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
| |
= note: required by `std::fmt::Debug::fmt` = 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) = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider restricting type parameter `T` help: consider restricting type parameter `T`
| |
LL | fn test_no_bounds<T: std::fmt::Debug>(t: T) { LL | fn test_no_bounds<T: std::fmt::Debug>(t: T) {
@ -31,7 +31,7 @@ LL | println!("{:?}", t);
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug` | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
| |
= note: required by `std::fmt::Debug::fmt` = 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) = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider further restricting this bound help: consider further restricting this bound
| |
LL | fn test_one_bound<T: Sized + std::fmt::Debug>(t: T) { LL | fn test_one_bound<T: Sized + std::fmt::Debug>(t: T) {
@ -44,7 +44,7 @@ LL | println!("{:?} {:?}", x, y);
| ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `Debug` | ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `Debug`
| |
= note: required by `std::fmt::Debug::fmt` = 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) = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider further restricting type parameter `Y` help: consider further restricting type parameter `Y`
| |
LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: std::fmt::Debug { LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: std::fmt::Debug {
@ -57,7 +57,7 @@ LL | println!("{:?}", x);
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug` | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug`
| |
= note: required by `std::fmt::Debug::fmt` = 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) = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider further restricting this bound help: consider further restricting this bound
| |
LL | fn test_one_bound_where<X>(x: X) where X: Sized + std::fmt::Debug { LL | fn test_one_bound_where<X>(x: X) where X: Sized + std::fmt::Debug {
@ -70,7 +70,7 @@ LL | println!("{:?}", x);
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug` | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug`
| |
= note: required by `std::fmt::Debug::fmt` = 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) = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider further restricting type parameter `X` help: consider further restricting type parameter `X`
| |
LL | fn test_many_bounds_where<X>(x: X) where X: Sized, X: Sized, X: std::fmt::Debug { LL | fn test_many_bounds_where<X>(x: X) where X: Sized, X: Sized, X: std::fmt::Debug {

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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected `,`, found `1` error: expected `,`, found `1`
--> $DIR/bad-format-args.rs:3:16 --> $DIR/bad-format-args.rs:3:16

View file

@ -4,7 +4,7 @@ error[E0600]: cannot apply unary operator `!` to type `&'static str`
LL | assert!("foo"); LL | assert!("foo");
| ^^^^^^^^^^^^^^^ cannot apply unary operator `!` | ^^^^^^^^^^^^^^^ cannot apply unary operator `!`
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert` (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

@ -61,7 +61,7 @@ LL | #[cfg(feature = $expr)]
LL | generate_s10!(concat!("nonexistent")); LL | generate_s10!(concat!("nonexistent"));
| -------------------------------------- in this macro invocation | -------------------------------------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `generate_s10` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected unsuffixed literal or identifier, found `concat!("nonexistent")` error: expected unsuffixed literal or identifier, found `concat!("nonexistent")`
--> $DIR/cfg-attr-syntax-validation.rs:30:25 --> $DIR/cfg-attr-syntax-validation.rs:30:25
@ -72,7 +72,7 @@ LL | #[cfg(feature = $expr)]
LL | generate_s10!(concat!("nonexistent")); LL | generate_s10!(concat!("nonexistent"));
| -------------------------------------- in this macro invocation | -------------------------------------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `generate_s10` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 11 previous errors error: aborting due to 11 previous errors

View file

@ -7,7 +7,7 @@ LL | #[cfg_attr(all(), unknown)]
LL | foo!(); LL | foo!();
| ------- in this macro invocation | ------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `foo` (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

@ -30,7 +30,7 @@ LL | let _: foo!({{ N }});
| ------------- in this macro invocation | ------------- in this macro invocation
| |
= note: this may fail depending on what value the parameter takes = note: this may fail depending on what value the parameter takes
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
error: constant expression depends on a generic parameter error: constant expression depends on a generic parameter
--> $DIR/macro_rules-braces.rs:20:13 --> $DIR/macro_rules-braces.rs:20:13
@ -42,7 +42,7 @@ LL | let _: bar!({ N });
| ----------- in this macro invocation | ----------- in this macro invocation
| |
= note: this may fail depending on what value the parameter takes = note: this may fail depending on what value the parameter takes
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
error: constant expression depends on a generic parameter error: constant expression depends on a generic parameter
--> $DIR/macro_rules-braces.rs:25:13 --> $DIR/macro_rules-braces.rs:25:13
@ -54,7 +54,7 @@ LL | let _: baz!({{ N }});
| ------------- in this macro invocation | ------------- in this macro invocation
| |
= note: this may fail depending on what value the parameter takes = note: this may fail depending on what value the parameter takes
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `baz` (in Nightly builds, run with -Z macro-backtrace for more info)
error: constant expression depends on a generic parameter error: constant expression depends on a generic parameter
--> $DIR/macro_rules-braces.rs:30:13 --> $DIR/macro_rules-braces.rs:30:13
@ -66,7 +66,7 @@ LL | let _: biz!({ N });
| ----------- in this macro invocation | ----------- in this macro invocation
| |
= note: this may fail depending on what value the parameter takes = note: this may fail depending on what value the parameter takes
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `biz` (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

@ -10,7 +10,7 @@ LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }} LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `gimme_a_const` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected type, found `{` error: expected type, found `{`
--> $DIR/macro-fail.rs:29:27 --> $DIR/macro-fail.rs:29:27
@ -24,7 +24,7 @@ LL | Example::<gimme_a_const!(marker)>
LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }} LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `gimme_a_const` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected type, found `{` error: expected type, found `{`
--> $DIR/macro-fail.rs:4:10 --> $DIR/macro-fail.rs:4:10
@ -43,7 +43,7 @@ LL | let _fail = Example::<external_macro!()>;
| this macro call doesn't expand to a type | this macro call doesn't expand to a type
| in this macro invocation | in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `external_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
error: unexpected end of macro invocation error: unexpected end of macro invocation
--> $DIR/macro-fail.rs:39:25 --> $DIR/macro-fail.rs:39:25

View file

@ -9,7 +9,7 @@ LL | const Z: () = std::panic!("cheese");
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:11:16 --> $DIR/const_panic.rs:11:16
@ -21,7 +21,7 @@ LL | const Z2: () = std::panic!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:15:15 --> $DIR/const_panic.rs:15:15
@ -33,7 +33,7 @@ LL | const Y: () = std::unreachable!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:19:15 --> $DIR/const_panic.rs:19:15
@ -45,7 +45,7 @@ LL | const X: () = std::unimplemented!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:23:15 --> $DIR/const_panic.rs:23:15
@ -57,7 +57,7 @@ LL | const W: () = std::panic!(MSG);
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:27:20 --> $DIR/const_panic.rs:27:20
@ -69,7 +69,7 @@ LL | const Z_CORE: () = core::panic!("cheese");
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:31:21 --> $DIR/const_panic.rs:31:21
@ -81,7 +81,7 @@ LL | const Z2_CORE: () = core::panic!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:35:20 --> $DIR/const_panic.rs:35:20
@ -93,7 +93,7 @@ LL | const Y_CORE: () = core::unreachable!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:39:20 --> $DIR/const_panic.rs:39:20
@ -105,7 +105,7 @@ LL | const X_CORE: () = core::unimplemented!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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:43:20 --> $DIR/const_panic.rs:43:20
@ -117,7 +117,7 @@ LL | const W_CORE: () = core::panic!(MSG);
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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

@ -9,7 +9,7 @@ LL | const Z: () = panic!("cheese");
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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_bin.rs:13:15 --> $DIR/const_panic_libcore_bin.rs:13:15
@ -21,7 +21,7 @@ LL | const Y: () = unreachable!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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_bin.rs:17:15 --> $DIR/const_panic_libcore_bin.rs:17:15
@ -33,7 +33,7 @@ LL | const X: () = unimplemented!();
| |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information = note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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
@ -16,7 +16,7 @@ LL | const Y: () = unreachable!();
| |
= note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information = note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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
@ -26,7 +26,7 @@ LL | const X: () = unimplemented!();
| |
= note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information = note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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

@ -13,7 +13,7 @@ LL | #![warn(const_err)]
| ^^^^^^^^^ | ^^^^^^^^^
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this warning originates in the macro `$crate::panic::panic_2015` (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:17:13 --> $DIR/panic-assoc-never-type.rs:17:13

View file

@ -13,7 +13,7 @@ LL | #![warn(const_err)]
| ^^^^^^^^^ | ^^^^^^^^^
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this warning originates in the macro `$crate::panic::panic_2015` (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:13:13 --> $DIR/panic-never-type.rs:13:13

View file

@ -14,7 +14,7 @@ LL | const _: () = foo();
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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 | static_assert!(2 + 2 == 5);
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `static_assert` (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

@ -16,7 +16,7 @@ LL | const BAR: i32 = Option::<i32>::None.unwrap();
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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

@ -37,7 +37,7 @@ LL | assert_eq!(BAR, true);
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors; 1 warning emitted error: aborting due to 2 previous errors; 1 warning emitted

View file

@ -9,7 +9,7 @@ LL | const _: () = assert!(false);
= note: `#[deny(const_err)]` on by default = note: `#[deny(const_err)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #71800 <https://github.com/rust-lang/rust/issues/71800> = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert` (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: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information = note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert` (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:10:15 --> $DIR/assert.rs:10:15
@ -16,7 +16,7 @@ LL | const _: () = assert!(false);
| |
= note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information = note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert` (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 | 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert_eq` (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 | | B = T,
LL | | } LL | | }
| |_- in this macro invocation | |_- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types error[E0308]: mismatched types
--> $DIR/enum-discr-type-err.rs:18:21 --> $DIR/enum-discr-type-err.rs:18:21
@ -24,7 +24,7 @@ LL | | B = T,
LL | | } LL | | }
| |_- in this macro invocation | |_- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `mac` (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

@ -4,7 +4,7 @@ error[E0015]: inline assembly is not allowed in constants
LL | const _: () = unsafe { llvm_asm!("nop") }; LL | const _: () = unsafe { llvm_asm!("nop") };
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `llvm_asm` (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: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information = note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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: argument to `panic!()` in a const context must have type `&str`
LL | let _ = [0i32; panic!(2f32)]; LL | let _ = [0i32; panic!(2f32)];
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed error[E0080]: evaluation of constant value failed
--> $DIR/issue-66693-panic-in-array-len.rs:12:21 --> $DIR/issue-66693-panic-in-array-len.rs:12:21
@ -12,7 +12,7 @@ error[E0080]: evaluation of constant value failed
LL | let _ = [false; panic!()]; LL | let _ = [false; panic!()];
| ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/issue-66693-panic-in-array-len.rs:12:21 | ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/issue-66693-panic-in-array-len.rs:12:21
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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

@ -4,7 +4,7 @@ error: argument to `panic!()` in a const context must have type `&str`
LL | panic!(&1); LL | panic!(&1);
| ^^^^^^^^^^^ | ^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
error: argument to `panic!()` in a const context must have type `&str` error: argument to `panic!()` in a const context must have type `&str`
--> $DIR/issue-66693.rs:6:15 --> $DIR/issue-66693.rs:6:15
@ -12,7 +12,7 @@ error: argument to `panic!()` in a const context must have type `&str`
LL | const _: () = panic!(1); LL | const _: () = panic!(1);
| ^^^^^^^^^ | ^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
error: argument to `panic!()` in a const context must have type `&str` error: argument to `panic!()` in a const context must have type `&str`
--> $DIR/issue-66693.rs:9:19 --> $DIR/issue-66693.rs:9:19
@ -20,7 +20,7 @@ error: argument to `panic!()` in a const context must have type `&str`
LL | static _FOO: () = panic!(true); LL | static _FOO: () = panic!(true);
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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 | struct Bug([u8; panic!("panic")]);
| |
= note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information = note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= 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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `$crate::panic::panic_2015` (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[E0010]: allocations are not allowed in constant functions
LL | vec![1, 2, 3] LL | vec![1, 2, 3]
| ^^^^^^^^^^^^^ allocation not allowed in constant functions | ^^^^^^^^^^^^^ allocation not allowed in constant functions
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
--> $DIR/bad_const_fn_body_ice.rs:2:5 --> $DIR/bad_const_fn_body_ice.rs:2:5
@ -12,7 +12,7 @@ error[E0015]: calls in constant functions are limited to constant functions, tup
LL | vec![1, 2, 3] LL | vec![1, 2, 3]
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `vec` (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

@ -177,7 +177,7 @@ help: skipping check that does not even have a feature gate
| |
LL | unsafe { match static_cross_crate::OPT_ZERO { Some(ref u) => u, None => panic!() } } LL | unsafe { match static_cross_crate::OPT_ZERO { Some(ref u) => u, None => panic!() } }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this warning originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 10 previous errors; 3 warnings emitted error: aborting due to 10 previous errors; 3 warnings emitted

View file

@ -177,7 +177,7 @@ help: skipping check that does not even have a feature gate
| |
LL | unsafe { match static_cross_crate::OPT_ZERO { Some(ref u) => u, None => panic!() } } LL | unsafe { match static_cross_crate::OPT_ZERO { Some(ref u) => u, None => panic!() } }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this warning originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 10 previous errors; 3 warnings emitted error: aborting due to 10 previous errors; 3 warnings emitted

View file

@ -4,7 +4,7 @@ error[E0080]: could not evaluate static initializer
LL | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); } LL | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline assembly is not supported | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline assembly is not supported
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: could not evaluate static initializer error[E0080]: could not evaluate static initializer
--> $DIR/inline_asm.rs:19:14 --> $DIR/inline_asm.rs:19:14
@ -24,7 +24,7 @@ help: skipping check that does not even have a feature gate
| |
LL | unsafe { asm!("nop"); } LL | unsafe { asm!("nop"); }
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this warning originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors; 1 warning emitted error: aborting due to 2 previous errors; 1 warning emitted

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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `concat` (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 | underscore!();
| |
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `underscore` (in Nightly builds, run with -Z macro-backtrace for more info)
error: in expressions, `_` can only be used on the left-hand side of an assignment error: in expressions, `_` can only be used on the left-hand side of an assignment
--> $DIR/underscore.rs:8:9 --> $DIR/underscore.rs:8:9
@ -24,7 +24,7 @@ LL | _
LL | underscore!(); LL | underscore!();
| -------------- in this macro invocation | -------------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `underscore` (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

@ -5,7 +5,7 @@ LL | fn wrong_kind(){}
| ^^^^^^^^^^^^^^^^^ the trait `Testable` is not implemented for `TestDescAndFn` | ^^^^^^^^^^^^^^^^^ the trait `Testable` is not implemented for `TestDescAndFn`
| |
= note: required for the cast to the object type `dyn Testable` = note: required for the cast to the object type `dyn Testable`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the attribute macro `test` (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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `macro_test` (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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `macro_test_arg_nested` (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

@ -43,7 +43,7 @@ LL | ($x:expr) => { &$x }
LL | foo3(borrow!(0)); LL | foo3(borrow!(0));
| ---------- in this macro invocation | ---------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `borrow` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types error[E0308]: mismatched types
--> $DIR/deref-suggestion.rs:36:5 --> $DIR/deref-suggestion.rs:36:5
@ -51,7 +51,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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `assert_eq` (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

@ -5,7 +5,7 @@ LL | x: Error
| ^^^^^^^^ the trait `Clone` is not implemented for `Error` | ^^^^^^^^ the trait `Clone` is not implemented for `Error`
| |
= note: required by `clone` = note: required by `clone`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Clone` (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 | Error
| ^^^^^ the trait `Clone` is not implemented for `Error` | ^^^^^ the trait `Clone` is not implemented for `Error`
| |
= note: required by `clone` = note: required by `clone`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Clone` (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 | x: Error
| ^^^^^^^^ the trait `Clone` is not implemented for `Error` | ^^^^^^^^ the trait `Clone` is not implemented for `Error`
| |
= note: required by `clone` = note: required by `clone`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Clone` (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 | Error
| ^^^^^ the trait `Clone` is not implemented for `Error` | ^^^^^ the trait `Clone` is not implemented for `Error`
| |
= note: required by `clone` = note: required by `clone`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Clone` (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 | x: Error
= note: add `#[derive(Debug)]` or manually implement `Debug` = note: add `#[derive(Debug)]` or manually implement `Debug`
= note: required because of the requirements on the impl of `Debug` for `&Error` = note: required because of the requirements on the impl of `Debug` for `&Error`
= note: required for the cast to the object type `dyn Debug` = note: required for the cast to the object type `dyn Debug`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Debug` (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 | Error
= note: add `#[derive(Debug)]` or manually implement `Debug` = note: add `#[derive(Debug)]` or manually implement `Debug`
= note: required because of the requirements on the impl of `Debug` for `&Error` = note: required because of the requirements on the impl of `Debug` for `&Error`
= note: required for the cast to the object type `dyn Debug` = note: required for the cast to the object type `dyn Debug`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Debug` (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 | x: Error
= note: add `#[derive(Debug)]` or manually implement `Debug` = note: add `#[derive(Debug)]` or manually implement `Debug`
= note: required because of the requirements on the impl of `Debug` for `&Error` = note: required because of the requirements on the impl of `Debug` for `&Error`
= note: required for the cast to the object type `dyn Debug` = note: required for the cast to the object type `dyn Debug`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Debug` (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 | Error
= note: add `#[derive(Debug)]` or manually implement `Debug` = note: add `#[derive(Debug)]` or manually implement `Debug`
= note: required because of the requirements on the impl of `Debug` for `&Error` = note: required because of the requirements on the impl of `Debug` for `&Error`
= note: required for the cast to the object type `dyn Debug` = note: required for the cast to the object type `dyn Debug`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Debug` (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 | x: Error
| ^^^^^^^^ the trait `Default` is not implemented for `Error` | ^^^^^^^^ the trait `Default` is not implemented for `Error`
| |
= note: required by `std::default::Default::default` = 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) = note: this error originates in the derive macro `Default` (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 | Error
| ^^^^^ the trait `Default` is not implemented for `Error` | ^^^^^ the trait `Default` is not implemented for `Error`
| |
= note: required by `std::default::Default::default` = 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) = note: this error originates in the derive macro `Default` (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 | x: Error
LL | pub struct AssertParamIsEq<T: Eq + ?Sized> { LL | pub struct AssertParamIsEq<T: Eq + ?Sized> {
| -- required by this bound in `AssertParamIsEq` | -- required by this bound in `AssertParamIsEq`
| |
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Eq` (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 | Error
LL | pub struct AssertParamIsEq<T: Eq + ?Sized> { LL | pub struct AssertParamIsEq<T: Eq + ?Sized> {
| -- required by this bound in `AssertParamIsEq` | -- required by this bound in `AssertParamIsEq`
| |
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Eq` (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 | x: Error
LL | pub struct AssertParamIsEq<T: Eq + ?Sized> { LL | pub struct AssertParamIsEq<T: Eq + ?Sized> {
| -- required by this bound in `AssertParamIsEq` | -- required by this bound in `AssertParamIsEq`
| |
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Eq` (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 | Error
LL | pub struct AssertParamIsEq<T: Eq + ?Sized> { LL | pub struct AssertParamIsEq<T: Eq + ?Sized> {
| -- required by this bound in `AssertParamIsEq` | -- required by this bound in `AssertParamIsEq`
| |
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Eq` (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 | x: Error
LL | fn hash<H: Hasher>(&self, state: &mut H); LL | fn hash<H: Hasher>(&self, state: &mut H);
| - required by this bound in `std::hash::Hash::hash` | - 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) = note: this error originates in the derive macro `Hash` (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 | Error
LL | fn hash<H: Hasher>(&self, state: &mut H); LL | fn hash<H: Hasher>(&self, state: &mut H);
| - required by this bound in `std::hash::Hash::hash` | - 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) = note: this error originates in the derive macro `Hash` (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 | x: Error
LL | fn hash<H: Hasher>(&self, state: &mut H); LL | fn hash<H: Hasher>(&self, state: &mut H);
| - required by this bound in `std::hash::Hash::hash` | - 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) = note: this error originates in the derive macro `Hash` (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 | Error
LL | fn hash<H: Hasher>(&self, state: &mut H); LL | fn hash<H: Hasher>(&self, state: &mut H);
| - required by this bound in `std::hash::Hash::hash` | - 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) = note: this error originates in the derive macro `Hash` (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 | x: Error
| ^^^^^^^^ the trait `Ord` is not implemented for `Error` | ^^^^^^^^ the trait `Ord` is not implemented for `Error`
| |
= note: required by `std::cmp::Ord::cmp` = 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) = note: this error originates in the derive macro `Ord` (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 | Error
| ^^^^^ the trait `Ord` is not implemented for `Error` | ^^^^^ the trait `Ord` is not implemented for `Error`
| |
= note: required by `std::cmp::Ord::cmp` = 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) = note: this error originates in the derive macro `Ord` (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 | x: Error
| ^^^^^^^^ the trait `Ord` is not implemented for `Error` | ^^^^^^^^ the trait `Ord` is not implemented for `Error`
| |
= note: required by `std::cmp::Ord::cmp` = 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) = note: this error originates in the derive macro `Ord` (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 | Error
| ^^^^^ the trait `Ord` is not implemented for `Error` | ^^^^^ the trait `Ord` is not implemented for `Error`
| |
= note: required by `std::cmp::Ord::cmp` = 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) = note: this error originates in the derive macro `Ord` (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 | x: Error
| ^^^^^^^^ | ^^^^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0369]: binary operation `!=` cannot be applied to type `Error` error[E0369]: binary operation `!=` cannot be applied to type `Error`
--> $DIR/derives-span-PartialEq-enum-struct-variant.rs:9:6 --> $DIR/derives-span-PartialEq-enum-struct-variant.rs:9:6
@ -14,7 +14,7 @@ LL | x: Error
| ^^^^^^^^ | ^^^^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (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

@ -5,7 +5,7 @@ LL | Error
| ^^^^^ | ^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0369]: binary operation `!=` cannot be applied to type `Error` error[E0369]: binary operation `!=` cannot be applied to type `Error`
--> $DIR/derives-span-PartialEq-enum.rs:9:6 --> $DIR/derives-span-PartialEq-enum.rs:9:6
@ -14,7 +14,7 @@ LL | Error
| ^^^^^ | ^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (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

@ -5,7 +5,7 @@ LL | x: Error
| ^^^^^^^^ | ^^^^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0369]: binary operation `!=` cannot be applied to type `Error` error[E0369]: binary operation `!=` cannot be applied to type `Error`
--> $DIR/derives-span-PartialEq-struct.rs:8:5 --> $DIR/derives-span-PartialEq-struct.rs:8:5
@ -14,7 +14,7 @@ LL | x: Error
| ^^^^^^^^ | ^^^^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (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

@ -5,7 +5,7 @@ LL | Error
| ^^^^^ | ^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0369]: binary operation `!=` cannot be applied to type `Error` error[E0369]: binary operation `!=` cannot be applied to type `Error`
--> $DIR/derives-span-PartialEq-tuple-struct.rs:8:5 --> $DIR/derives-span-PartialEq-tuple-struct.rs:8:5
@ -14,7 +14,7 @@ LL | Error
| ^^^^^ | ^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (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 | x: Error
| |
= help: the trait `PartialOrd` is not implemented for `Error` = help: the trait `PartialOrd` is not implemented for `Error`
= note: required by `std::cmp::PartialOrd::partial_cmp` = 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) = note: this error originates in the derive macro `PartialOrd` (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 | Error
| |
= help: the trait `PartialOrd` is not implemented for `Error` = help: the trait `PartialOrd` is not implemented for `Error`
= note: required by `std::cmp::PartialOrd::partial_cmp` = 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) = note: this error originates in the derive macro `PartialOrd` (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 | x: Error
| |
= help: the trait `PartialOrd` is not implemented for `Error` = help: the trait `PartialOrd` is not implemented for `Error`
= note: required by `std::cmp::PartialOrd::partial_cmp` = 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) = note: this error originates in the derive macro `PartialOrd` (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 | Error
| |
= help: the trait `PartialOrd` is not implemented for `Error` = help: the trait `PartialOrd` is not implemented for `Error`
= note: required by `std::cmp::PartialOrd::partial_cmp` = 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) = note: this error originates in the derive macro `PartialOrd` (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 | x: NoCloneOrEq
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0369]: binary operation `!=` cannot be applied to type `NoCloneOrEq` error[E0369]: binary operation `!=` cannot be applied to type `NoCloneOrEq`
--> $DIR/deriving-no-inner-impl-error-message.rs:5:5 --> $DIR/deriving-no-inner-impl-error-message.rs:5:5
@ -14,7 +14,7 @@ LL | x: NoCloneOrEq
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
| |
= note: an implementation of `std::cmp::PartialEq` might be missing for `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) = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `NoCloneOrEq: Clone` is not satisfied error[E0277]: the trait bound `NoCloneOrEq: Clone` is not satisfied
--> $DIR/deriving-no-inner-impl-error-message.rs:10:5 --> $DIR/deriving-no-inner-impl-error-message.rs:10:5
@ -23,7 +23,7 @@ LL | x: NoCloneOrEq
| ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NoCloneOrEq` | ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NoCloneOrEq`
| |
= note: required by `clone` = note: required by `clone`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Clone` (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 @@ LL | #![deny(unaligned_references)]
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = 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 #82523 <https://github.com/rust-lang/rust/issues/82523> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `Clone` (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) 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 --> $DIR/deriving-with-repr-packed.rs:8:23
@ -21,7 +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! = 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 #82523 <https://github.com/rust-lang/rust/issues/82523> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `PartialEq` (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) 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 --> $DIR/deriving-with-repr-packed.rs:16:10
@ -31,7 +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! = 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 #82523 <https://github.com/rust-lang/rust/issues/82523> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `PartialEq` (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) 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 --> $DIR/deriving-with-repr-packed.rs:25:10
@ -41,7 +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! = 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 #82523 <https://github.com/rust-lang/rust/issues/82523> = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `PartialEq` (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

@ -55,7 +55,7 @@ LL | ($ty: ty) => ($ty::clone(&0))
LL | expr!(u8); LL | expr!(u8);
| ---------- in this macro invocation | ---------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 9 previous errors error: aborting due to 9 previous errors

View file

@ -37,7 +37,7 @@ LL | ($ty: ty) => ($ty::AssocItem)
LL | pat!(u8) => {} LL | pat!(u8) => {}
| -------- in this macro invocation | -------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `pat` (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 error[E0599]: no associated item named `AssocItem` found for slice `[u8]` in the current scope
--> $DIR/bad-assoc-pat.rs:3:15 --> $DIR/bad-assoc-pat.rs:3:15
@ -72,7 +72,7 @@ LL | ($ty: ty) => ($ty::AssocItem)
LL | pat!(u8) => {} LL | pat!(u8) => {}
| -------- in this macro invocation | -------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `pat` (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 error[E0599]: no associated item named `AssocItem` found for type `u8` in the current scope
--> $DIR/bad-assoc-pat.rs:32:16 --> $DIR/bad-assoc-pat.rs:32:16

View file

@ -55,7 +55,7 @@ LL | ($ty: ty) => ($ty::AssocTy);
LL | type J = ty!(u8); LL | type J = ty!(u8);
| ------- in this macro invocation | ------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `ty` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0223]: ambiguous associated type error[E0223]: ambiguous associated type
--> $DIR/bad-assoc-ty.rs:1:10 --> $DIR/bad-assoc-ty.rs:1:10
@ -114,7 +114,7 @@ LL | ($ty: ty) => ($ty::AssocTy);
LL | type J = ty!(u8); LL | type J = ty!(u8);
| ------- in this macro invocation | ------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `ty` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0223]: ambiguous associated type error[E0223]: ambiguous associated type
--> $DIR/bad-assoc-ty.rs:44:10 --> $DIR/bad-assoc-ty.rs:44:10

View file

@ -8,7 +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 | -------------------------------------------------- in this macro invocation
| |
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate (`recursion_limit_macro`) = 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) = note: this error originates in the macro `recurse` (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 | mod $i;
LL | mod_decl!(foo); LL | mod_decl!(foo);
| --------------- in this macro invocation | --------------- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `mod_decl` (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 | use a::$crate::b;
LL | m!(); LL | m!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import `a::$crate` error[E0432]: unresolved import `a::$crate`
--> $DIR/dollar-crate-is-keyword-2.rs:5:13 --> $DIR/dollar-crate-is-keyword-2.rs:5:13
@ -18,7 +18,7 @@ LL | use a::$crate;
LL | m!(); LL | m!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (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 error[E0433]: failed to resolve: `$crate` in paths can only be used in start position
--> $DIR/dollar-crate-is-keyword-2.rs:7:21 --> $DIR/dollar-crate-is-keyword-2.rs:7:21
@ -29,7 +29,7 @@ LL | type A = a::$crate;
LL | m!(); LL | m!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (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 | struct $crate {}
LL | m!(); LL | m!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected identifier, found reserved identifier `$crate` error: expected identifier, found reserved identifier `$crate`
--> $DIR/dollar-crate-is-keyword.rs:10:23 --> $DIR/dollar-crate-is-keyword.rs:10:23
@ -18,7 +18,7 @@ LL | use $crate as $crate;
LL | m!(); LL | m!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `$crate` may not be imported error: `$crate` may not be imported
--> $DIR/dollar-crate-is-keyword.rs:9:9 --> $DIR/dollar-crate-is-keyword.rs:9:9
@ -29,7 +29,7 @@ LL | use $crate;
LL | m!(); LL | m!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `$crate` may not be imported error: `$crate` may not be imported
--> $DIR/dollar-crate-is-keyword.rs:10:9 --> $DIR/dollar-crate-is-keyword.rs:10:9
@ -40,7 +40,7 @@ LL | use $crate as $crate;
LL | m!(); LL | m!();
| ----- in this macro invocation | ----- in this macro invocation
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `m` (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

@ -4,7 +4,7 @@ error: cannot glob-import all possible crates
LL | gen_glob!(); LL | gen_glob!();
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `gen_glob` (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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `gen_glob` (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 the list of imported crates | ^^^^^^^^^^^^^ could not find `E` in the list of imported crates
| |
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `gen_gated` (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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `produces_async` (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 (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `produces_async` (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() {})

Some files were not shown because too many files have changed in this diff Show more