mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
These changes involve the error messages produced in `check_attribute_stability`, plus some related ones. The basic idea: - Use "the `foo` attribute" in `error` lines as much as possible, where `foo` is the attribute's path. - Point carets at just the attribute's path, to match the `error` line.
24 lines
984 B
Plaintext
24 lines
984 B
Plaintext
error[E0658]: the `panic_runtime` attribute is an experimental feature
|
|
--> $DIR/needs-gate.rs:4:4
|
|
|
|
|
LL | #![panic_runtime]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #32837 <https://github.com/rust-lang/rust/issues/32837> for more information
|
|
= help: add `#![feature(panic_runtime)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0658]: the `needs_panic_runtime` attribute is an experimental feature
|
|
--> $DIR/needs-gate.rs:5:4
|
|
|
|
|
LL | #![needs_panic_runtime]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #32837 <https://github.com/rust-lang/rust/issues/32837> for more information
|
|
= help: add `#![feature(needs_panic_runtime)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|