We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff24ef9 commit 38bb88cCopy full SHA for 38bb88c
library/core/src/ub_checks.rs
@@ -69,7 +69,7 @@ macro_rules! assert_unsafe_precondition {
69
}
70
71
72
- if ::core::ub_checks::$kind() {
+ if cfg!(debug_assertions) {
73
precondition_check($($arg,)*);
74
75
0 commit comments