]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0668 explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 16 Jun 2020 11:11:32 +0000 (13:11 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 16 Jun 2020 11:11:32 +0000 (13:11 +0200)
src/librustc_error_codes/error_codes/E0668.md

index 3b43a1bcae9e6003ecee6c8a40562e83e6af166b..b6fedfe53fce8ad44656ea4027f0168ae7eca780 100644 (file)
@@ -1,11 +1,7 @@
 Malformed inline assembly rejected by LLVM.
 
-LLVM checks the validity of the constraints and the assembly string passed to
-it. This error implies that LLVM seems something wrong with the inline
-assembly call.
+Erroneous code example:
 
-In particular, it can happen if you forgot the closing bracket of a register
-constraint (see issue #51430):
 ```compile_fail,E0668
 #![feature(llvm_asm)]
 
@@ -17,3 +13,10 @@ fn main() {
     }
 }
 ```
+
+LLVM checks the validity of the constraints and the assembly string passed to
+it. This error implies that LLVM seems something wrong with the inline
+assembly call.
+
+In particular, it can happen if you forgot the closing bracket of a register
+constraint (see issue #51430), like in the previous code example.