Files
rust/tests/ui/asm/x86_64/bad-options.stderr

108 lines
4.0 KiB
Plaintext
Raw Normal View History

2020-02-20 09:19:48 +00:00
error: the `nomem` and `readonly` options are mutually exclusive
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:10:18
2020-02-20 09:19:48 +00:00
|
LL | asm!("", options(nomem, readonly));
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: the `pure` and `noreturn` options are mutually exclusive
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:12:18
2020-02-20 09:19:48 +00:00
|
LL | asm!("", options(pure, nomem, noreturn));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: asm with the `pure` option must have at least one output
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:12:18
2020-02-20 09:19:48 +00:00
|
LL | asm!("", options(pure, nomem, noreturn));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: asm with the `pure` option must have at least one output
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:15:33
2020-02-20 09:19:48 +00:00
|
LL | asm!("{}", in(reg) foo, options(pure, nomem));
| ^^^^^^^^^^^^^^^^^^^^
error: asm outputs are not allowed with the `noreturn` option
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:17:20
2020-02-20 09:19:48 +00:00
|
LL | asm!("{}", out(reg) foo, options(noreturn));
| ^^^^^^^^^^^^
2023-12-27 22:57:17 +00:00
error: asm labels are not allowed with the `may_unwind` option
--> $DIR/bad-options.rs:19:20
|
LL | asm!("{}", label {}, options(may_unwind));
| ^^^^^^^^
2021-07-29 13:43:26 +02:00
error: asm with `clobber_abi` must specify explicit registers for outputs
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:26:20
2021-07-29 13:43:26 +02:00
|
LL | asm!("{}", out(reg) foo, clobber_abi("C"));
| ^^^^^^^^^^^^ ---------------- clobber_abi
| |
| generic outputs
error: asm with `clobber_abi` must specify explicit registers for outputs
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:28:20
|
LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
| ^^^^^^^^^^^^ ---------------- ---------------- clobber_abi
| | |
| | clobber_abi
| generic outputs
error: the `nomem` option cannot be used with `global_asm!`
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:35:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(nomem));
| ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
error: the `readonly` option cannot be used with `global_asm!`
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:37:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(readonly));
| ^^^^^^^^ the `readonly` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
error: the `noreturn` option cannot be used with `global_asm!`
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:39:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(noreturn));
| ^^^^^^^^ the `noreturn` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
error: the `pure` option cannot be used with `global_asm!`
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:41:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(pure));
| ^^^^ the `pure` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
error: the `nostack` option cannot be used with `global_asm!`
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:43:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(nostack));
| ^^^^^^^ the `nostack` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
error: the `preserves_flags` option cannot be used with `global_asm!`
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:45:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(preserves_flags));
| ^^^^^^^^^^^^^^^ the `preserves_flags` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
2021-07-29 13:43:26 +02:00
error: invalid ABI for `clobber_abi`
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:24:18
2021-07-29 13:43:26 +02:00
|
LL | asm!("", clobber_abi("foo"));
| ^^^^^^^^^^^^^^^^^^
|
= note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
error: `C` ABI specified multiple times
2023-12-27 22:57:17 +00:00
--> $DIR/bad-options.rs:28:52
|
LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
| ---------------- ^^^^^^^^^^^^^^^^
| |
| previously specified here
2023-12-27 22:57:17 +00:00
error: aborting due to 16 previous errors
2020-02-20 09:19:48 +00:00