Files
rust/tests/ui/feature-gates/feature-gate-patchable-function-entry.stderr
Nicholas Nethercote 2e2cdf9b81 Improve consistency of attribute stability error messages
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.
2026-07-24 12:58:29 +10:00

14 lines
638 B
Plaintext

error[E0658]: the `patchable_function_entry` attribute is an experimental feature
--> $DIR/feature-gate-patchable-function-entry.rs:1:3
|
LL | #[patchable_function_entry(prefix_nops = 1, entry_nops = 1)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #123115 <https://github.com/rust-lang/rust/issues/123115> for more information
= help: add `#![feature(patchable_function_entry)]` 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 1 previous error
For more information about this error, try `rustc --explain E0658`.