mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
c6a166bac2
- merge error codes - use attribute name that is incompatible in error message - add test for conditional incompatible attribute - add `linkage` to the allowlist
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
error[E0736]: attribute incompatible with `#[naked]`
|
|
--> $DIR/naked-functions-inline.rs:13:1
|
|
|
|
|
LL | #[naked]
|
|
| -------- function marked with `#[naked]` here
|
|
LL | #[inline]
|
|
| ^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]`
|
|
|
|
error[E0736]: attribute incompatible with `#[naked]`
|
|
--> $DIR/naked-functions-inline.rs:20:1
|
|
|
|
|
LL | #[naked]
|
|
| -------- function marked with `#[naked]` here
|
|
LL | #[inline(always)]
|
|
| ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]`
|
|
|
|
error[E0736]: attribute incompatible with `#[naked]`
|
|
--> $DIR/naked-functions-inline.rs:27:1
|
|
|
|
|
LL | #[naked]
|
|
| -------- function marked with `#[naked]` here
|
|
LL | #[inline(never)]
|
|
| ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]`
|
|
|
|
error[E0736]: attribute incompatible with `#[naked]`
|
|
--> $DIR/naked-functions-inline.rs:34:19
|
|
|
|
|
LL | #[naked]
|
|
| -------- function marked with `#[naked]` here
|
|
LL | #[cfg_attr(all(), inline(never))]
|
|
| ^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0736`.
|