Make std::panic_2021 an alias for core::panic_2021.
This commit is contained in:
parent
d5414f9a9f
commit
fc7c5e486c
@ -36,16 +36,7 @@
|
||||
|
||||
#[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};
|
||||
|
Loading…
Reference in New Issue
Block a user