about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-02 22:16:14 +0100
committerGitHub <noreply@github.com>2021-12-02 22:16:14 +0100
commitfbfa0030162e5a7afd8b175c8ed496b66adf2875 (patch)
tree2a57096a734f8f835ee58cb640ad691e511409b0 /compiler/rustc_codegen_llvm/src
parentdbb9e224af79a6c26c7b887662c5d2c21cf51b88 (diff)
parentb11d88006cb03a8f50aa09d91aa457d6ec0b8cd8 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions