Skip to content

Commit b085eb0

Browse files
committed
Error codes specific to LLVM-style inline asssembly are no longer emitted
1 parent d4fb6ec commit b085eb0

File tree

7 files changed

+21
-32
lines changed

7 files changed

+21
-32
lines changed

Diff for: compiler/rustc_error_codes/src/error_codes/E0660.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
The argument to the `llvm_asm` macro is not well-formed.
24

35
Erroneous code example:
46

5-
```compile_fail,E0660
7+
```ignore (no longer emitted)
68
llvm_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

Diff for: compiler/rustc_error_codes/src/error_codes/E0661.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
An invalid syntax was passed to the second argument of an `llvm_asm` macro line.
24

35
Erroneous code example:
46

5-
```compile_fail,E0661
7+
```ignore (no longer emitted)
68
let a;
79
llvm_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

Diff for: compiler/rustc_error_codes/src/error_codes/E0662.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
An invalid input operand constraint was passed to the `llvm_asm` macro
24
(third line).
35

46
Erroneous code example:
57

6-
```compile_fail,E0662
8+
```ignore (no longer emitted)
79
llvm_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

Diff for: compiler/rustc_error_codes/src/error_codes/E0663.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
An invalid input operand constraint was passed to the `llvm_asm` macro
24
(third line).
35

46
Erroneous code example:
57

6-
```compile_fail,E0663
8+
```ignore (no longer emitted)
79
llvm_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

Diff for: compiler/rustc_error_codes/src/error_codes/E0664.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
A clobber was surrounded by braces in the `llvm_asm` macro.
24

35
Erroneous code example:
46

5-
```compile_fail,E0664
7+
```ignore (no longer emitted)
68
llvm_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

Diff for: compiler/rustc_error_codes/src/error_codes/E0668.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
Malformed inline assembly rejected by LLVM.
24

35
Erroneous code example:
46

5-
```compile_fail,E0668
7+
```ignore (no longer emitted)
68
#![feature(llvm_asm)]
79
810
fn main() {

Diff for: compiler/rustc_error_codes/src/error_codes/E0669.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
Cannot convert inline assembly operand to a single LLVM value.
24

35
Erroneous code example:
46

5-
```compile_fail,E0669
7+
```ignore (no longer emitted)
68
#![feature(llvm_asm)]
79
810
fn main() {

0 commit comments

Comments
 (0)