RS.CLIPPY.INLINE_ASM_X86_INTEL_SYNTAX

Prefer AT&T 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_intel_syntax. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for usage of Intel x86 assembly syntax.

Why restrict this?

To enforce consistent use of AT&T x86 assembly syntax.

Example

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

Use instead:

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