You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00e0124
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #162985 - mejrs:nightly_attr_errors, r=JonathanBrouwer
Error on invalid placements for unstable attributes
These are unstable, no need to have a warning.
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
60
76
= note: this error originates in the macro `foo` which comes from the expansion of the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
61
77
62
-
warning: the `allow_internal_unstable` attribute cannot be used on struct fields
63
-
--> $DIR/internal-unstable.rs:10:7
64
-
|
65
-
LL | #[allow_internal_unstable]
66
-
| ^^^^^^^^^^^^^^^^^^^^^^^
67
-
|
68
-
= help: the `allow_internal_unstable` attribute can be applied to functions and macro defs
69
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
70
-
= note: requested on the command line with `-W unused-attributes`
71
-
72
-
warning: the `allow_internal_unstable` attribute cannot be used on match arms
73
-
--> $DIR/internal-unstable.rs:61:11
74
-
|
75
-
LL | #[allow_internal_unstable]
76
-
| ^^^^^^^^^^^^^^^^^^^^^^^
77
-
|
78
-
= help: the `allow_internal_unstable` attribute can be applied to functions and macro defs
79
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
80
-
81
-
error: aborting due to 7 previous errors; 2 warnings emitted
78
+
error: aborting due to 9 previous errors
82
79
83
80
For more information about this error, try `rustc --explain E0658`.
0 commit comments