diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-01-09 20:11:08 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-01-25 13:49:00 +0100 |
| commit | fc7c5e486cac5ddb761652f816d5e83575fa7743 (patch) | |
| tree | 09d37be3caaf37a1c7a6a1f39be2ede9c9a4955f | |
| parent | d5414f9a9f38e2598b3401d05d0e7b44af65a4a0 (diff) | |
| download | rust-fc7c5e486cac5ddb761652f816d5e83575fa7743.tar.gz rust-fc7c5e486cac5ddb761652f816d5e83575fa7743.zip | |
Make std::panic_2021 an alias for core::panic_2021.
| -rw-r--r-- | library/std/src/panic.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index 00a2865120e..bfdadcbfd10 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}; |
