rust/tests/ui/asm/naked-functions-inline.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.3 KiB
Text
Raw Normal View History

2025-03-29 17:30:11 +01:00
error[E0736]: attribute incompatible with `#[unsafe(naked)]`
--> $DIR/naked-functions-inline.rs:13:1
|
2025-03-29 17:30:11 +01:00
LL | #[unsafe(naked)]
| ---------------- function marked with `#[unsafe(naked)]` here
LL | #[inline]
2025-03-29 17:30:11 +01:00
| ^^^^^^^^^ the `inline` attribute is incompatible with `#[unsafe(naked)]`
2025-03-29 17:30:11 +01:00
error[E0736]: attribute incompatible with `#[unsafe(naked)]`
--> $DIR/naked-functions-inline.rs:20:1
|
2025-03-29 17:30:11 +01:00
LL | #[unsafe(naked)]
| ---------------- function marked with `#[unsafe(naked)]` here
LL | #[inline(always)]
2025-03-29 17:30:11 +01:00
| ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[unsafe(naked)]`
2025-03-29 17:30:11 +01:00
error[E0736]: attribute incompatible with `#[unsafe(naked)]`
--> $DIR/naked-functions-inline.rs:27:1
|
2025-03-29 17:30:11 +01:00
LL | #[unsafe(naked)]
| ---------------- function marked with `#[unsafe(naked)]` here
LL | #[inline(never)]
2025-03-29 17:30:11 +01:00
| ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[unsafe(naked)]`
2025-03-29 17:30:11 +01:00
error[E0736]: attribute incompatible with `#[unsafe(naked)]`
--> $DIR/naked-functions-inline.rs:34:19
|
2025-03-29 17:30:11 +01:00
LL | #[unsafe(naked)]
| ---------------- function marked with `#[unsafe(naked)]` here
LL | #[cfg_attr(all(), inline(never))]
2025-03-29 17:30:11 +01:00
| ^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[unsafe(naked)]`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0736`.