Skip to content

Commit

Permalink
Error codes specific to LLVM-style inline asssembly are no longer emi…
Browse files Browse the repository at this point in the history
…tted
  • Loading branch information
tmiasko committed Jan 12, 2022
1 parent d4fb6ec commit b085eb0
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 32 deletions.
9 changes: 3 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0660.md
Original file line number Diff line number Diff line change
@@ -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.

Erroneous code example:

```compile_fail,E0660
```ignore (no longer emitted)
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
9 changes: 3 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0661.md
Original file line number Diff line number Diff line change
@@ -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.

Erroneous code example:

```compile_fail,E0661
```ignore (no longer emitted)
let 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
9 changes: 3 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0662.md
Original file line number Diff line number Diff line change
@@ -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
(third line).

Erroneous code example:

```compile_fail,E0662
```ignore (no longer emitted)
llvm_asm!("xor %eax, %eax"
:
: "=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
9 changes: 3 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0663.md
Original file line number Diff line number Diff line change
@@ -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
(third line).

Erroneous code example:

```compile_fail,E0663
```ignore (no longer emitted)
llvm_asm!("xor %eax, %eax"
:
: "+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
9 changes: 3 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0664.md
Original file line number Diff line number Diff line change
@@ -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.

Erroneous code example:

```compile_fail,E0664
```ignore (no longer emitted)
llvm_asm!("mov $$0x200, %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
4 changes: 3 additions & 1 deletion compiler/rustc_error_codes/src/error_codes/E0668.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#### Note: this error code is no longer emitted by the compiler.

Malformed inline assembly rejected by LLVM.

Erroneous code example:

```compile_fail,E0668
```ignore (no longer emitted)
#![feature(llvm_asm)]
fn main() {
Expand Down
4 changes: 3 additions & 1 deletion compiler/rustc_error_codes/src/error_codes/E0669.md
Original file line number Diff line number Diff line change
@@ -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.

Erroneous code example:

```compile_fail,E0669
```ignore (no longer emitted)
#![feature(llvm_asm)]
fn main() {
Expand Down

0 comments on commit b085eb0

Please sign in to comment.