Skip to content

Commit e77cc50

Browse files
committed
remove const
1 parent 9d7a01e commit e77cc50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/panicking.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ pub const fn panic_fmt(fmt: fmt::Arguments<'_>) -> ! {
6767
#[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))]
6868
#[cfg_attr(feature = "panic_immediate_abort", inline)]
6969
#[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)) -> ! {
70+
#[unstable(feature = "error_in_panic", issue = "none")]
71+
pub fn panic_source(fmt: fmt::Arguments<'_>, source: &(dyn Error + 'static)) -> ! {
7372
if cfg!(feature = "panic_immediate_abort") {
7473
super::intrinsics::abort()
7574
}

0 commit comments

Comments
 (0)