We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b3b80a commit 462ee9cCopy full SHA for 462ee9c
library/core/src/macros/mod.rs
@@ -2,6 +2,7 @@
2
#[macro_export]
3
#[allow_internal_unstable(core_panic, const_caller_location)]
4
#[stable(feature = "core", since = "1.6.0")]
5
+#[rustc_diagnostic_item = "core_panic_macro"]
6
macro_rules! panic {
7
() => (
8
$crate::panic!("explicit panic")
library/std/src/macros.rs
@@ -8,6 +8,7 @@
9
#[stable(feature = "rust1", since = "1.0.0")]
10
#[allow_internal_unstable(libstd_sys_internals)]
11
+#[rustc_diagnostic_item = "std_panic_macro"]
12
13
() => ({ $crate::panic!("explicit panic") });
14
($msg:expr $(,)?) => ({ $crate::rt::begin_panic($msg) });
0 commit comments