2020-02-20 03:19:48 -06:00
|
|
|
error: the `nomem` and `readonly` options are mutually exclusive
|
|
|
|
--> $DIR/bad-options.rs:8:18
|
|
|
|
|
|
|
|
|
LL | asm!("", options(nomem, readonly));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `pure` and `noreturn` options are mutually exclusive
|
|
|
|
--> $DIR/bad-options.rs:10:18
|
|
|
|
|
|
|
|
|
LL | asm!("", options(pure, nomem, noreturn));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-07-29 04:15:50 -05:00
|
|
|
error: asm with the `pure` option must have at least one output
|
2020-02-20 03:19:48 -06:00
|
|
|
--> $DIR/bad-options.rs:10:18
|
|
|
|
|
|
|
|
|
LL | asm!("", options(pure, nomem, noreturn));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-07-29 04:15:50 -05:00
|
|
|
error: asm with the `pure` option must have at least one output
|
2020-02-20 03:19:48 -06:00
|
|
|
--> $DIR/bad-options.rs:13:33
|
|
|
|
|
|
|
|
|
LL | asm!("{}", in(reg) foo, options(pure, nomem));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: asm outputs are not allowed with the `noreturn` option
|
|
|
|
--> $DIR/bad-options.rs:15:20
|
|
|
|
|
|
|
|
|
LL | asm!("{}", out(reg) foo, options(noreturn));
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2021-07-29 06:43:26 -05:00
|
|
|
error: asm with `clobber_abi` must specify explicit registers for outputs
|
|
|
|
--> $DIR/bad-options.rs:22:20
|
|
|
|
|
|
|
|
|
LL | asm!("{}", out(reg) foo, clobber_abi("C"));
|
|
|
|
| ^^^^^^^^^^^^ ---------------- clobber_abi
|
|
|
|
| |
|
|
|
|
| generic outputs
|
|
|
|
|
2021-10-14 02:23:09 -05:00
|
|
|
error: asm with `clobber_abi` must specify explicit registers for outputs
|
|
|
|
--> $DIR/bad-options.rs:24:20
|
|
|
|
|
|
|
|
|
LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
|
|
|
|
| ^^^^^^^^^^^^ ---------------- ---------------- clobber_abi
|
|
|
|
| | |
|
|
|
|
| | clobber_abi
|
|
|
|
| generic outputs
|
|
|
|
|
2022-08-01 23:25:45 -05:00
|
|
|
error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
|
2021-10-14 02:23:09 -05:00
|
|
|
--> $DIR/bad-options.rs:31:25
|
2021-04-13 12:11:11 -05:00
|
|
|
|
|
|
|
|
LL | global_asm!("", options(nomem));
|
2022-08-01 23:25:45 -05:00
|
|
|
| ^^^^^ expected one of `)`, `att_syntax`, or `raw`
|
2021-04-13 12:11:11 -05:00
|
|
|
|
2022-08-01 23:25:45 -05:00
|
|
|
error: expected one of `)`, `att_syntax`, or `raw`, found `readonly`
|
2021-10-14 02:23:09 -05:00
|
|
|
--> $DIR/bad-options.rs:33:25
|
2021-04-13 12:11:11 -05:00
|
|
|
|
|
|
|
|
LL | global_asm!("", options(readonly));
|
2022-08-01 23:25:45 -05:00
|
|
|
| ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
|
2021-04-13 12:11:11 -05:00
|
|
|
|
2022-08-01 23:25:45 -05:00
|
|
|
error: expected one of `)`, `att_syntax`, or `raw`, found `noreturn`
|
2021-10-14 02:23:09 -05:00
|
|
|
--> $DIR/bad-options.rs:35:25
|
2021-04-13 12:11:11 -05:00
|
|
|
|
|
|
|
|
LL | global_asm!("", options(noreturn));
|
2022-08-01 23:25:45 -05:00
|
|
|
| ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
|
2021-04-13 12:11:11 -05:00
|
|
|
|
2022-08-01 23:25:45 -05:00
|
|
|
error: expected one of `)`, `att_syntax`, or `raw`, found `pure`
|
2021-10-14 02:23:09 -05:00
|
|
|
--> $DIR/bad-options.rs:37:25
|
2021-04-13 12:11:11 -05:00
|
|
|
|
|
|
|
|
LL | global_asm!("", options(pure));
|
2022-08-01 23:25:45 -05:00
|
|
|
| ^^^^ expected one of `)`, `att_syntax`, or `raw`
|
2021-04-13 12:11:11 -05:00
|
|
|
|
2022-08-01 23:25:45 -05:00
|
|
|
error: expected one of `)`, `att_syntax`, or `raw`, found `nostack`
|
2021-10-14 02:23:09 -05:00
|
|
|
--> $DIR/bad-options.rs:39:25
|
2021-04-13 12:11:11 -05:00
|
|
|
|
|
|
|
|
LL | global_asm!("", options(nostack));
|
2022-08-01 23:25:45 -05:00
|
|
|
| ^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
|
2021-04-13 12:11:11 -05:00
|
|
|
|
2022-08-01 23:25:45 -05:00
|
|
|
error: expected one of `)`, `att_syntax`, or `raw`, found `preserves_flags`
|
2021-10-14 02:23:09 -05:00
|
|
|
--> $DIR/bad-options.rs:41:25
|
2021-04-13 12:11:11 -05:00
|
|
|
|
|
|
|
|
LL | global_asm!("", options(preserves_flags));
|
2022-08-01 23:25:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
|
2021-04-13 12:11:11 -05:00
|
|
|
|
2021-07-29 06:43:26 -05:00
|
|
|
error: invalid ABI for `clobber_abi`
|
|
|
|
--> $DIR/bad-options.rs:20:18
|
|
|
|
|
|
|
|
|
LL | asm!("", clobber_abi("foo"));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
|
|
|
|
|
2021-10-14 02:23:09 -05:00
|
|
|
error: `C` ABI specified multiple times
|
|
|
|
--> $DIR/bad-options.rs:24:52
|
|
|
|
|
|
|
|
|
LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
|
|
|
|
| ---------------- ^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| previously specified here
|
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
2020-02-20 03:19:48 -06:00
|
|
|
|