We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30e0c30 + 330ec0a commit a5c2211Copy full SHA for a5c2211
cargo-miri/bin.rs
@@ -354,7 +354,8 @@ path = "lib.rs"
354
command.env_remove("RUSTC_WRAPPER");
355
command.env_remove("RUSTFLAGS");
356
// Disable debug assertions in the standard library -- Miri is already slow enough.
357
- command.env("RUSTFLAGS", "-Cdebug-assertions=off");
+ // But keep the overflow checks, they are cheap.
358
+ command.env("RUSTFLAGS", "-Cdebug-assertions=off -Coverflow-checks=on");
359
// Finally run it!
360
if command.status().expect("failed to run xargo").success().not() {
361
show_error(format!("failed to run xargo"));
0 commit comments