We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00c5996 commit c5273bdCopy full SHA for c5273bd
library/std/src/panic.rs
@@ -36,16 +36,7 @@ pub macro panic_2015 {
36
37
#[doc(hidden)]
38
#[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
-}
+pub use core::panic::panic_2021;
49
50
#[stable(feature = "panic_hooks", since = "1.10.0")]
51
pub use crate::panicking::{set_hook, take_hook};
0 commit comments