diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-03-20 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-03-20 21:41:27 +0100 |
| commit | addf680cbd9167eccbf8518039e53a10b3b68dcf (patch) | |
| tree | aee10ab5f8b3e978715798cec7e1bc8ef53a5b2b | |
| parent | 61edfd591cedff66fca639c02f66984f6271e5a6 (diff) | |
| download | rust-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.rs | 2 |
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. |
