Inline asm errors don't report file/line no information #72664
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
C-bug
Category: This is a bug.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
F-asm
`#![feature(asm)]` (not `llvm_asm`)
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When an error within the assembly body of an inline asm happens (such as an invalid opcode), rust reports the error without pointing which inline asm instance (e.g. which file/line) caused it to happen. For instance:
The above "wrong" inline asm (on x86 32-bit) will report the following:
This makes it hard to track down where the error is caused.
Playground link.
Meta
rustc version: 1.45.0-nightly(2020-05-26 5239f5c)
The text was updated successfully, but these errors were encountered: