about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-03-20 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-03-20 21:41:27 +0100
commitaddf680cbd9167eccbf8518039e53a10b3b68dcf (patch)
treeaee10ab5f8b3e978715798cec7e1bc8ef53a5b2b
parent61edfd591cedff66fca639c02f66984f6271e5a6 (diff)
downloadrust-addf680cbd9167eccbf8518039e53a10b3b68dcf.tar.gz
rust-addf680cbd9167eccbf8518039e53a10b3b68dcf.zip
Use a single codegen unit to reduce non-determinism in srcloc.rs test
When building with multiple codegen units the test case can fail with
only a subset of all errors. Use a single codegen unit as a workaround.
-rw-r--r--src/test/ui/asm/srcloc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/asm/srcloc.rs b/src/test/ui/asm/srcloc.rs
index 1477e3dd566..7262064e7bb 100644
--- a/src/test/ui/asm/srcloc.rs
+++ b/src/test/ui/asm/srcloc.rs
@@ -1,7 +1,7 @@
 // no-system-llvm
 // only-x86_64
 // build-fail
-
+// compile-flags: -Ccodegen-units=1
 #![feature(asm)]
 
 // Checks that inline asm errors are mapped to the correct line in the source code.