forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error codes specific to LLVM-style inline asssembly are no longer emi…
…tted
- Loading branch information
Showing
7 changed files
with
21 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters