]> git.lizzy.rs Git - rust.git/commitdiff
Fix comment
authorRalf Jung <post@ralfj.de>
Sun, 19 Apr 2020 18:21:26 +0000 (20:21 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 19 Apr 2020 18:23:28 +0000 (20:23 +0200)
src/test/ui/consts/miri_unleashed/inline_asm.rs
src/test/ui/consts/miri_unleashed/inline_asm.stderr

index 5888d1e816a36aee7c2e5b2e4bcc4b8d60cec119..f56131025627be0b1844d8c323702f4b91f62ee8 100644 (file)
@@ -5,8 +5,7 @@
 
 fn main() {}
 
-// Make sure we catch executing bad drop functions.
-// The actual error is tested by the error-pattern above.
+// Make sure we catch executing inline assembly.
 static TEST_BAD: () = {
     unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
     //~^ ERROR could not evaluate static initializer
index 5381c898d3fbf0c6e4558e681039a0adf4aa53fc..3cbdd326c82338af7a76e12ab64bcfdec7a876e3 100644 (file)
@@ -1,5 +1,5 @@
 error[E0080]: could not evaluate static initializer
-  --> $DIR/inline_asm.rs:11:14
+  --> $DIR/inline_asm.rs:10:14
    |
 LL |     unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline assembly is not supported