Closed
Description
(Cross) compiling this test for arm-unknown-linux-gnueabihf
fails because the error span is missing. (Reproduced on nightly-2017-03-04
)
#![feature(asm)]
fn main() {
unsafe {
asm!("nowayisthisavalidinstruction"); //~ ERROR instruction
}
}
Output of rustc --target=arm-unknown-linux-gnueabihf -Copt-level=0
:
error: <inline asm>:1:2: error: invalid instruction
nowayisthisavalidinstruction
^
error: aborting due to previous error
Output of rustc --target=arm-unknown-linux-gnueabihf -Copt-level=1
:
error: <inline asm>:1:2: error: invalid instruction
nowayisthisavalidinstruction
^
--> asmt.rs:5:9
|
5 | asm!("nowayisthisavalidinstruction"); //~ ERROR instruction
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Inline assembly (`asm!(…)`)Category: This is a bug.Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.