File tree Expand file tree Collapse file tree 7 files changed +21
-32
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 7 files changed +21
-32
lines changed Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13The argument to the ` llvm_asm ` macro is not well-formed.
24
35Erroneous code example:
46
5- ``` compile_fail,E0660
7+ ``` ignore (no longer emitted)
68llvm_asm!("nop" "nop");
79```
8-
9- Considering that this would be a long explanation, we instead recommend you
10- take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
11-
12- [ `llvm_asm` ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13An invalid syntax was passed to the second argument of an ` llvm_asm ` macro line.
24
35Erroneous code example:
46
5- ``` compile_fail,E0661
7+ ``` ignore (no longer emitted)
68let a;
79llvm_asm!("nop" : "r"(a));
810```
9-
10- Considering that this would be a long explanation, we instead recommend you
11- take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
12-
13- [ `llvm_asm` ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13An invalid input operand constraint was passed to the ` llvm_asm ` macro
24(third line).
35
46Erroneous code example:
57
6- ``` compile_fail,E0662
8+ ``` ignore (no longer emitted)
79llvm_asm!("xor %eax, %eax"
810 :
911 : "=test"("a")
1012 );
1113```
12-
13- Considering that this would be a long explanation, we instead recommend you
14- take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
15-
16- [ `llvm_asm` ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13An invalid input operand constraint was passed to the ` llvm_asm ` macro
24(third line).
35
46Erroneous code example:
57
6- ``` compile_fail,E0663
8+ ``` ignore (no longer emitted)
79llvm_asm!("xor %eax, %eax"
810 :
911 : "+test"("a")
1012 );
1113```
12-
13- Considering that this would be a long explanation, we instead recommend you
14- take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
15-
16- [ `llvm_asm` ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13A clobber was surrounded by braces in the ` llvm_asm ` macro.
24
35Erroneous code example:
46
5- ``` compile_fail,E0664
7+ ``` ignore (no longer emitted)
68llvm_asm!("mov $$0x200, %eax"
79 :
810 :
911 : "{eax}"
1012 );
1113```
12-
13- Considering that this would be a long explanation, we instead recommend you
14- take a look at the [ ` llvm_asm ` ] chapter of the Unstable book:
15-
16- [ `llvm_asm` ] : https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13Malformed inline assembly rejected by LLVM.
24
35Erroneous code example:
46
5- ``` compile_fail,E0668
7+ ``` ignore (no longer emitted)
68#![feature(llvm_asm)]
79
810fn main() {
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13Cannot convert inline assembly operand to a single LLVM value.
24
35Erroneous code example:
46
5- ``` compile_fail,E0669
7+ ``` ignore (no longer emitted)
68#![feature(llvm_asm)]
79
810fn main() {
You can’t perform that action at this time.
0 commit comments