Error codes specific to LLVM-style inline asssembly are no longer emitted
This commit is contained in:
parent
d4fb6ec683
commit
b085eb0b10
7 changed files with 21 additions and 32 deletions
|
@ -1,12 +1,9 @@
|
||||||
|
#### Note: this error code is no longer emitted by the compiler.
|
||||||
|
|
||||||
The argument to the `llvm_asm` macro is not well-formed.
|
The argument to the `llvm_asm` macro is not well-formed.
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0660
|
```ignore (no longer emitted)
|
||||||
llvm_asm!("nop" "nop");
|
llvm_asm!("nop" "nop");
|
||||||
```
|
```
|
||||||
|
|
||||||
Considering that this would be a long explanation, we instead recommend you
|
|
||||||
take a look at the [`llvm_asm`] chapter of the Unstable book:
|
|
||||||
|
|
||||||
[`llvm_asm`]: https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
|
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
|
#### Note: this error code is no longer emitted by the compiler.
|
||||||
|
|
||||||
An invalid syntax was passed to the second argument of an `llvm_asm` macro line.
|
An invalid syntax was passed to the second argument of an `llvm_asm` macro line.
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0661
|
```ignore (no longer emitted)
|
||||||
let a;
|
let a;
|
||||||
llvm_asm!("nop" : "r"(a));
|
llvm_asm!("nop" : "r"(a));
|
||||||
```
|
```
|
||||||
|
|
||||||
Considering that this would be a long explanation, we instead recommend you
|
|
||||||
take a look at the [`llvm_asm`] chapter of the Unstable book:
|
|
||||||
|
|
||||||
[`llvm_asm`]: https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
|
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
|
#### Note: this error code is no longer emitted by the compiler.
|
||||||
|
|
||||||
An invalid input operand constraint was passed to the `llvm_asm` macro
|
An invalid input operand constraint was passed to the `llvm_asm` macro
|
||||||
(third line).
|
(third line).
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0662
|
```ignore (no longer emitted)
|
||||||
llvm_asm!("xor %eax, %eax"
|
llvm_asm!("xor %eax, %eax"
|
||||||
:
|
:
|
||||||
: "=test"("a")
|
: "=test"("a")
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Considering that this would be a long explanation, we instead recommend you
|
|
||||||
take a look at the [`llvm_asm`] chapter of the Unstable book:
|
|
||||||
|
|
||||||
[`llvm_asm`]: https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
|
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
|
#### Note: this error code is no longer emitted by the compiler.
|
||||||
|
|
||||||
An invalid input operand constraint was passed to the `llvm_asm` macro
|
An invalid input operand constraint was passed to the `llvm_asm` macro
|
||||||
(third line).
|
(third line).
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0663
|
```ignore (no longer emitted)
|
||||||
llvm_asm!("xor %eax, %eax"
|
llvm_asm!("xor %eax, %eax"
|
||||||
:
|
:
|
||||||
: "+test"("a")
|
: "+test"("a")
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Considering that this would be a long explanation, we instead recommend you
|
|
||||||
take a look at the [`llvm_asm`] chapter of the Unstable book:
|
|
||||||
|
|
||||||
[`llvm_asm`]: https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
|
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
|
#### Note: this error code is no longer emitted by the compiler.
|
||||||
|
|
||||||
A clobber was surrounded by braces in the `llvm_asm` macro.
|
A clobber was surrounded by braces in the `llvm_asm` macro.
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0664
|
```ignore (no longer emitted)
|
||||||
llvm_asm!("mov $$0x200, %eax"
|
llvm_asm!("mov $$0x200, %eax"
|
||||||
:
|
:
|
||||||
:
|
:
|
||||||
: "{eax}"
|
: "{eax}"
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Considering that this would be a long explanation, we instead recommend you
|
|
||||||
take a look at the [`llvm_asm`] chapter of the Unstable book:
|
|
||||||
|
|
||||||
[`llvm_asm`]: https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
#### Note: this error code is no longer emitted by the compiler.
|
||||||
|
|
||||||
Malformed inline assembly rejected by LLVM.
|
Malformed inline assembly rejected by LLVM.
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0668
|
```ignore (no longer emitted)
|
||||||
#![feature(llvm_asm)]
|
#![feature(llvm_asm)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
#### Note: this error code is no longer emitted by the compiler.
|
||||||
|
|
||||||
Cannot convert inline assembly operand to a single LLVM value.
|
Cannot convert inline assembly operand to a single LLVM value.
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0669
|
```ignore (no longer emitted)
|
||||||
#![feature(llvm_asm)]
|
#![feature(llvm_asm)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue