From c5273bdfb266c35e8eab9413aa8d58d27fdbe114 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Sat, 9 Jan 2021 20:11:08 +0100 Subject: [PATCH] Make std::panic_2021 an alias for core::panic_2021. --- library/std/src/panic.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index fef0fcca80749..9f544fae97917 100644 --- a/library/std/src/panic.rs +++ b/library/std/src/panic.rs @@ -36,16 +36,7 @@ pub macro panic_2015 { #[doc(hidden)] #[unstable(feature = "edition_panic", issue = "none", reason = "use panic!() instead")] -#[allow_internal_unstable(libstd_sys_internals)] -#[rustc_macro_transparency = "semitransparent"] -pub macro panic_2021 { - () => ({ - $crate::rt::begin_panic("explicit panic") - }), - ($($t:tt)+) => ({ - $crate::rt::begin_panic_fmt(&$crate::format_args!($($t)+)) - }), -} +pub use core::panic::panic_2021; #[stable(feature = "panic_hooks", since = "1.10.0")] pub use crate::panicking::{set_hook, take_hook};