We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a715c46 commit 8707370Copy full SHA for 8707370
library/core/src/panic.rs
@@ -150,14 +150,14 @@ pub macro unreachable_2021 {
150
#[rustc_macro_transparency = "semitransparent"]
151
pub macro debug_assert_nounwind {
152
($cond:expr $(,)?) => {
153
- if $crate::cfg!(debug_assertions) {
+ if $crate::intrinsics::debug_assertions() {
154
if !$cond {
155
$crate::panicking::panic_nounwind($crate::concat!("assertion failed: ", $crate::stringify!($cond)));
156
}
157
158
},
159
($cond:expr, $($arg:tt)+) => {
160
161
162
$crate::panicking::panic_nounwind_fmt($crate::const_format_args!($($arg)+), false);
163
0 commit comments