We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7a01e commit e77cc50Copy full SHA for e77cc50
library/core/src/panicking.rs
@@ -67,9 +67,8 @@ pub const fn panic_fmt(fmt: fmt::Arguments<'_>) -> ! {
67
#[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))]
68
#[cfg_attr(feature = "panic_immediate_abort", inline)]
69
#[track_caller]
70
-#[rustc_do_not_const_check] // hooked by const-eval
71
-#[rustc_const_unstable(feature = "core_panic", issue = "none")]
72
-pub const fn panic_source(fmt: fmt::Arguments<'_>, source: &(dyn Error + 'static)) -> ! {
+#[unstable(feature = "error_in_panic", issue = "none")]
+pub fn panic_source(fmt: fmt::Arguments<'_>, source: &(dyn Error + 'static)) -> ! {
73
if cfg!(feature = "panic_immediate_abort") {
74
super::intrinsics::abort()
75
}
0 commit comments