mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
enable overflow checks in the standard library
This commit is contained in:
+2
-1
@@ -354,7 +354,8 @@ fn setup(subcommand: MiriCommand) {
|
||||
command.env_remove("RUSTC_WRAPPER");
|
||||
command.env_remove("RUSTFLAGS");
|
||||
// Disable debug assertions in the standard library -- Miri is already slow enough.
|
||||
command.env("RUSTFLAGS", "-Cdebug-assertions=off");
|
||||
// But keep the overflow checks, they are cheap.
|
||||
command.env("RUSTFLAGS", "-Cdebug-assertions=off -Coverflow-checks=on");
|
||||
// Finally run it!
|
||||
if command.status().expect("failed to run xargo").success().not() {
|
||||
show_error(format!("failed to run xargo"));
|
||||
|
||||
Reference in New Issue
Block a user