Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Add ICE #67019 #227

Merged
merged 3 commits into from
Dec 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ices/67019.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

rustc +nightly --edition 2018 -Z mir-opt-level=2 - << EOF
fn test(this: ((u8, u8),)) {
assert!((this.0).1 == 0);
}
fn main() {
test(((1, 2),));
}

EOF
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub use rayon;

static RUSTC: &str = "rustc";
static ICES_PATH: &str = "ices";
static SHELL: &str = "bash";

#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
enum TestMode {
Expand Down Expand Up @@ -40,7 +41,8 @@ impl ICE {
.arg(std::fs::canonicalize(&self.path)?)
.current_dir(workdir.path())
.output()?,
TestMode::ShellScript => Command::new(std::fs::canonicalize(&self.path)?)
TestMode::ShellScript => Command::new(SHELL)
.arg(std::fs::canonicalize(&self.path)?)
.current_dir(workdir.path())
.output()?,
};
Expand Down