@@ -10,7 +10,7 @@ LL | m!();
10
10
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
11
11
12
12
error: 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
14
14
|
15
15
LL | #[stable(feature = not_a_literal!(), since = "?")]
16
16
| ^^^^^^^^^^^^^^^^
@@ -20,54 +20,8 @@ LL | m!();
20
20
|
21
21
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
22
22
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
-
69
23
error: struct has missing stability attribute
70
- --> $DIR/eager-expansion-fail.rs:17 :9
24
+ --> $DIR/eager-expansion-fail.rs:14 :9
71
25
|
72
26
LL | pub struct Math;
73
27
| ^^^^^^^^^^^^^^^^
@@ -78,7 +32,7 @@ LL | m!();
78
32
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
79
33
80
34
error: struct has missing stability attribute
81
- --> $DIR/eager-expansion-fail.rs:23 :9
35
+ --> $DIR/eager-expansion-fail.rs:17 :9
82
36
|
83
37
LL | pub struct NotLiteral;
84
38
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -88,6 +42,5 @@ LL | m!();
88
42
|
89
43
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
90
44
91
- error: aborting due to 8 previous errors
45
+ error: aborting due to 4 previous errors
92
46
93
- For more information about this error, try `rustc --explain E0539`.
0 commit comments