@@ -10,7 +10,7 @@ LL | m!();
1010 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
1111
1212error: expression in the value of this attribute must be a literal or macro call
13- --> $DIR/eager-expansion-fail.rs:19 :28
13+ --> $DIR/eager-expansion-fail.rs:16 :28
1414 |
1515LL | #[stable(feature = not_a_literal!(), since = "?")]
1616 | ^^^^^^^^^^^^^^^^
@@ -20,54 +20,8 @@ LL | m!();
2020 |
2121 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
2222
23- error[E0539]: incorrect meta item
24- --> $DIR/eager-expansion-fail.rs:13:18
25- |
26- LL | #[stable(feature = 1 + 1, since = "?")]
27- | ^^^^^^^^^^^^^^^
28- ...
29- LL | m!();
30- | ---- in this macro invocation
31- |
32- = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
33-
34- error[E0539]: incorrect meta item
35- --> $DIR/eager-expansion-fail.rs:13:18
36- |
37- LL | #[stable(feature = 1 + 1, since = "?")]
38- | ^^^^^^^^^^^^^^^
39- ...
40- LL | m!();
41- | ---- in this macro invocation
42- |
43- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
44- = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
45-
46- error[E0539]: incorrect meta item
47- --> $DIR/eager-expansion-fail.rs:19:18
48- |
49- LL | #[stable(feature = not_a_literal!(), since = "?")]
50- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
51- ...
52- LL | m!();
53- | ---- in this macro invocation
54- |
55- = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
56-
57- error[E0539]: incorrect meta item
58- --> $DIR/eager-expansion-fail.rs:19:18
59- |
60- LL | #[stable(feature = not_a_literal!(), since = "?")]
61- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
62- ...
63- LL | m!();
64- | ---- in this macro invocation
65- |
66- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
67- = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
68-
6923error: struct has missing stability attribute
70- --> $DIR/eager-expansion-fail.rs:17 :9
24+ --> $DIR/eager-expansion-fail.rs:14 :9
7125 |
7226LL | pub struct Math;
7327 | ^^^^^^^^^^^^^^^^
@@ -78,7 +32,7 @@ LL | m!();
7832 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
7933
8034error: struct has missing stability attribute
81- --> $DIR/eager-expansion-fail.rs:23 :9
35+ --> $DIR/eager-expansion-fail.rs:17 :9
8236 |
8337LL | pub struct NotLiteral;
8438 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -88,6 +42,5 @@ LL | m!();
8842 |
8943 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
9044
91- error: aborting due to 8 previous errors
45+ error: aborting due to 4 previous errors
9246
93- For more information about this error, try `rustc --explain E0539`.
0 commit comments