diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-02 22:16:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 22:16:14 +0100 |
| commit | fbfa0030162e5a7afd8b175c8ed496b66adf2875 (patch) | |
| tree | 2a57096a734f8f835ee58cb640ad691e511409b0 /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | dbb9e224af79a6c26c7b887662c5d2c21cf51b88 (diff) | |
| parent | b11d88006cb03a8f50aa09d91aa457d6ec0b8cd8 (diff) | |
| download | rust-fbfa0030162e5a7afd8b175c8ed496b66adf2875.tar.gz rust-fbfa0030162e5a7afd8b175c8ed496b66adf2875.zip | |
Rollup merge of #91444 - RalfJung:miri-tests, r=dtolnay
disable tests in Miri that take too long
Comparing slices of length `usize::MAX` diverges in Miri. In fact these tests even diverge in rustc unless `-O` is passed. I tried this code to check that:
```rust
#![feature(slice_take)]
const EMPTY_MAX: &'static [()] = &[(); usize::MAX];
fn main() {
let mut slice: &[_] = &[(); usize::MAX];
println!("1");
assert_eq!(Some(&[] as _), slice.take(usize::MAX..));
println!("2");
let remaining: &[_] = EMPTY_MAX;
println!("3");
assert_eq!(remaining, slice);
println!("4");
}
```
So, disable these tests in Miri for now.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions
