Skip to content

Commit

Permalink
Make std::panic_2021 an alias for core::panic_2021.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jan 12, 2021
1 parent 00c5996 commit c5273bd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions library/std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit c5273bd

Please sign in to comment.