Skip to content

Commit 754b460

Browse files
committed
Auto merge of rust-lang#123679 - saethlin:measure-ub-checks, r=<try>
Disable assert_unsafe_precondition to measure compile-time cost r? ghost
2 parents ff24ef9 + 62333ec commit 754b460

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/ub_checks.rs

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ macro_rules! assert_unsafe_precondition {
6969
}
7070
}
7171

72+
#[cfg(debug_assertions)]
7273
if ::core::ub_checks::$kind() {
7374
precondition_check($($arg,)*);
7475
}

0 commit comments

Comments
 (0)