asm! should catch attempts to use .intel_syntax
or .att_syntax
and suggest appropriate options instead
#79869
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-asm
`#![feature(asm)]` (not `llvm_asm`)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
People used to gcc/clang inline assembly may try using the
.intel_syntax
or.att_syntax
directives directly in the assembly string, which can cause issues. Ideally, we should detect attempts to use those directives. Attempting to use.intel_syntax
should generate an error stating that that's the default. Attempting to use.att_syntax
should generate an error and point to theatt_syntax
option, ideally with a rustfix-applicable suggestion.The text was updated successfully, but these errors were encountered: