Skip to content

Commit

Permalink
disable miri and related debugging until rust-lang/miri#2340 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jul 9, 2022
1 parent a15a46d commit 3ebbcbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ fn main() {
&Executable::Rustdoc,
&Executable::Clippy,
&Executable::Rustfmt,
&Executable::Miri,
// disable miri until https://github.com/rust-lang/miri/issues/2340 is fixed
//&Executable::Miri,
]
}
};
Expand Down
5 changes: 3 additions & 2 deletions src/run_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,15 @@ pub(crate) fn run_miri(
//let stderr = String::from_utf8(out.stderr.clone()).unwrap();
//eprintln!("{}", stderr);
let out2 = out.clone();
let out3 = out.clone(); // hax
//let out3 = out.clone(); // hax
if [out2.stderr, out2.stdout].into_iter().any(|out| {
let out = String::from_utf8(out).unwrap();
out.contains("compiler_builtins ")
}) {
eprintln!("\n\n\n\n");
/* eprintln!("\n\n\n\n");
eprintln!("STDOUT:\n {}", String::from_utf8(out3.stdout).unwrap());
eprintln!("STDERR:\n {}", String::from_utf8(out3.stderr).unwrap());
*/

panic!(
"miri tried to recompile std!!\n{:?} {:?} {:?} in {:?}\n\n",
Expand Down

0 comments on commit 3ebbcbb

Please sign in to comment.