Skip to content

Commit c5273bd

Browse files
committed
Make std::panic_2021 an alias for core::panic_2021.
1 parent 00c5996 commit c5273bd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

library/std/src/panic.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,7 @@ pub macro panic_2015 {
3636

3737
#[doc(hidden)]
3838
#[unstable(feature = "edition_panic", issue = "none", reason = "use panic!() instead")]
39-
#[allow_internal_unstable(libstd_sys_internals)]
40-
#[rustc_macro_transparency = "semitransparent"]
41-
pub macro panic_2021 {
42-
() => ({
43-
$crate::rt::begin_panic("explicit panic")
44-
}),
45-
($($t:tt)+) => ({
46-
$crate::rt::begin_panic_fmt(&$crate::format_args!($($t)+))
47-
}),
48-
}
39+
pub use core::panic::panic_2021;
4940

5041
#[stable(feature = "panic_hooks", since = "1.10.0")]
5142
pub use crate::panicking::{set_hook, take_hook};

0 commit comments

Comments
 (0)