We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 580067c commit 55fabf3Copy full SHA for 55fabf3
library/core/src/intrinsics.rs
@@ -2569,6 +2569,17 @@ extern "rust-intrinsic" {
2569
#[rustc_nounwind]
2570
#[cfg(not(bootstrap))]
2571
pub fn is_val_statically_known<T: Copy>(arg: T) -> bool;
2572
+
2573
+ #[rustc_const_unstable(feature = "delayed_debug_assertions", issue = "none")]
2574
+ #[rustc_safe_intrinsic]
2575
+ #[cfg(not(bootstrap))]
2576
+ pub(crate) fn debug_assertions() -> bool;
2577
+}
2578
2579
+#[cfg(bootstrap)]
2580
+#[rustc_const_unstable(feature = "delayed_debug_assertions", issue = "none")]
2581
+pub(crate) const fn debug_assertions() -> bool {
2582
+ cfg!(debug_assertions)
2583
}
2584
2585
// FIXME: Seems using `unstable` here completely ignores `rustc_allow_const_fn_unstable`
0 commit comments