diff options
| author | Josh Stone <jistone@redhat.com> | 2019-08-12 17:29:34 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2019-08-12 17:29:34 -0700 |
| commit | bca6f28f7f7a6db3416c0d4e631a7a4cc1072cf7 (patch) | |
| tree | 67604f36a068677ceb4138529c45c88683d0dec4 /src | |
| parent | c4189a0bd91af5bd77ba30004992c6fa6a63c23e (diff) | |
| download | rust-bca6f28f7f7a6db3416c0d4e631a7a4cc1072cf7.tar.gz rust-bca6f28f7f7a6db3416c0d4e631a7a4cc1072cf7.zip | |
Force optimization in 32-bit iter overflow tests
Diffstat (limited to 'src')
4 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/iterators/iter-count-overflow-debug.rs b/src/test/ui/iterators/iter-count-overflow-debug.rs index 1e14142c5a6..d6612035750 100644 --- a/src/test/ui/iterators/iter-count-overflow-debug.rs +++ b/src/test/ui/iterators/iter-count-overflow-debug.rs @@ -1,7 +1,7 @@ // run-pass // only-32bit too impatient for 2⁶⁴ items // ignore-wasm32-bare compiled with panic=abort by default -// compile-flags: -C debug_assertions=yes +// compile-flags: -C debug_assertions=yes -C opt-level=3 use std::panic; use std::usize::MAX; diff --git a/src/test/ui/iterators/iter-count-overflow-ndebug.rs b/src/test/ui/iterators/iter-count-overflow-ndebug.rs index 124aa8d2258..b755bb554f4 100644 --- a/src/test/ui/iterators/iter-count-overflow-ndebug.rs +++ b/src/test/ui/iterators/iter-count-overflow-ndebug.rs @@ -1,6 +1,6 @@ // run-pass // only-32bit too impatient for 2⁶⁴ items -// compile-flags: -C debug_assertions=no +// compile-flags: -C debug_assertions=no -C opt-level=3 use std::panic; use std::usize::MAX; diff --git a/src/test/ui/iterators/iter-position-overflow-debug.rs b/src/test/ui/iterators/iter-position-overflow-debug.rs index 68e4646fe2d..f1eded31702 100644 --- a/src/test/ui/iterators/iter-position-overflow-debug.rs +++ b/src/test/ui/iterators/iter-position-overflow-debug.rs @@ -1,7 +1,7 @@ // run-pass // only-32bit too impatient for 2⁶⁴ items // ignore-wasm32-bare compiled with panic=abort by default -// compile-flags: -C debug_assertions=yes +// compile-flags: -C debug_assertions=yes -C opt-level=3 use std::panic; use std::usize::MAX; diff --git a/src/test/ui/iterators/iter-position-overflow-ndebug.rs b/src/test/ui/iterators/iter-position-overflow-ndebug.rs index 3bdedf2aff1..368f9c0c02b 100644 --- a/src/test/ui/iterators/iter-position-overflow-ndebug.rs +++ b/src/test/ui/iterators/iter-position-overflow-ndebug.rs @@ -1,6 +1,6 @@ // run-pass // only-32bit too impatient for 2⁶⁴ items -// compile-flags: -C debug_assertions=no +// compile-flags: -C debug_assertions=no -C opt-level=3 use std::panic; use std::usize::MAX; |
