RS.CLIPPY.INLINE_ASM_X86_ATT_SYNTAX

Prefer Intel x86 assembly syntax

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: inline_asm_x86_att_syntax. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for usage of AT&T x86 assembly syntax.

Why restrict this?

To enforce consistent use of Intel x86 assembly syntax.

Example

asm!("lea ({}), {}", in(reg) ptr, lateout(reg) _, options(att_syntax));

Use instead:

asm!("lea {}, [{}]", lateout(reg) _, in(reg) ptr);