Skip to content

Commit 8707370

Browse files
committed
Convert all other debug_assert_nounwind
1 parent a715c46 commit 8707370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/panic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ pub macro unreachable_2021 {
150150
#[rustc_macro_transparency = "semitransparent"]
151151
pub macro debug_assert_nounwind {
152152
($cond:expr $(,)?) => {
153-
if $crate::cfg!(debug_assertions) {
153+
if $crate::intrinsics::debug_assertions() {
154154
if !$cond {
155155
$crate::panicking::panic_nounwind($crate::concat!("assertion failed: ", $crate::stringify!($cond)));
156156
}
157157
}
158158
},
159159
($cond:expr, $($arg:tt)+) => {
160-
if $crate::cfg!(debug_assertions) {
160+
if $crate::intrinsics::debug_assertions() {
161161
if !$cond {
162162
$crate::panicking::panic_nounwind_fmt($crate::const_format_args!($($arg)+), false);
163163
}

0 commit comments

Comments
 (0)