Skip to content

Commit 905ed5f

Browse files
committed
Make rust.overflow-checks-stdoption default to rust.overflow-checks.
1 parent bcf7cf6 commit 905ed5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ impl Config {
982982
config.rust_debug_assertions_std =
983983
debug_assertions_std.unwrap_or(config.rust_debug_assertions);
984984
config.rust_overflow_checks = overflow_checks.unwrap_or(default);
985-
config.rust_overflow_checks_std = overflow_checks_std.unwrap_or(default);
985+
config.rust_overflow_checks_std =
986+
overflow_checks_std.unwrap_or(config.rust_overflow_checks);
986987

987988
config.rust_debug_logging = debug_logging.unwrap_or(config.rust_debug_assertions);
988989

0 commit comments

Comments
 (0)