diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-05-14 20:17:21 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-05-15 14:29:57 +0200 |
| commit | 30d950231e430d3fc4f6e27f6ebb47e8056dc3f7 (patch) | |
| tree | 594f03ee9fa45fe37fbee1b430a659cba7d418ef /src/libsyntax_ext/diagnostics.rs | |
| parent | cb1ce7ddf8e791faddc9760ca505d513ce1c00c9 (diff) | |
| download | rust-30d950231e430d3fc4f6e27f6ebb47e8056dc3f7.tar.gz rust-30d950231e430d3fc4f6e27f6ebb47e8056dc3f7.zip | |
Add missing error codes in libsyntax-ext asm
Diffstat (limited to 'src/libsyntax_ext/diagnostics.rs')
| -rw-r--r-- | src/libsyntax_ext/diagnostics.rs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/libsyntax_ext/diagnostics.rs b/src/libsyntax_ext/diagnostics.rs index a840c0392e9..33ae24c37e5 100644 --- a/src/libsyntax_ext/diagnostics.rs +++ b/src/libsyntax_ext/diagnostics.rs @@ -42,4 +42,56 @@ Considering that this would be a long explanation, we instead recommend you to take a look at the unstable book: https://doc.rust-lang.org/unstable-book/language-features/asm.html "##, + +E0662: r##" +An invalid input operand constraint was passed to the `asm` macro (third line). + +Erroneous code example: + +```compile_fail,E0662 +asm!("xor %eax, %eax" + : + : "=test"("a") + ); +``` + +Considering that this would be a long explanation, we instead recommend you to +take a look at the unstable book: +https://doc.rust-lang.org/unstable-book/language-features/asm.html +"##, + +E0663: r##" +An invalid input operand constraint was passed to the `asm` macro (third line). + +Erroneous code example: + +```compile_fail,E0663 +asm!("xor %eax, %eax" + : + : "+test"("a") + ); +``` + +Considering that this would be a long explanation, we instead recommend you to +take a look at the unstable book: +https://doc.rust-lang.org/unstable-book/language-features/asm.html +"##, + +E0664: r##" +A clobber was surrounded by braces in the `asm` macro. + +Erroneous code example: + +```compile_fail,E0663 +asm!("mov $$0x200, %eax" + : + : + : "{eax}" + ); +``` + +Considering that this would be a long explanation, we instead recommend you to +take a look at the unstable book: +https://doc.rust-lang.org/unstable-book/language-features/asm.html +"##, } |
