mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
34 lines
1.4 KiB
Text
34 lines
1.4 KiB
Text
error: passing pointers to nomem asm block
|
|
--> tests/ui/pointers_in_nomem_asm_block.rs:11:9
|
|
|
|
|
LL | p1 = in(reg) p,
|
|
| ^^^^^^^^^^^^^^
|
|
...
|
|
LL | p3 = in(reg) p,
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `nomem` means that no memory write or read happens inside the asm! block
|
|
= note: if this is intentional and no pointers are read or written to, consider allowing the lint
|
|
= note: `-D clippy::pointers-in-nomem-asm-block` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::pointers_in_nomem_asm_block)]`
|
|
|
|
error: passing pointers to nomem asm block
|
|
--> tests/ui/pointers_in_nomem_asm_block.rs:26:22
|
|
|
|
|
LL | asm!("asdf {p}", p = in(reg) p, options(nomem, nostack, preserves_flags));
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= note: `nomem` means that no memory write or read happens inside the asm! block
|
|
= note: if this is intentional and no pointers are read or written to, consider allowing the lint
|
|
|
|
error: passing pointers to nomem asm block
|
|
--> tests/ui/pointers_in_nomem_asm_block.rs:31:22
|
|
|
|
|
LL | asm!("call {p}", p = in(reg) p, options(nomem));
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= note: `nomem` means that no memory write or read happens inside the asm! block
|
|
= note: if this is intentional and no pointers are read or written to, consider allowing the lint
|
|
|
|
error: aborting due to 3 previous errors
|
|
|