From 462ee9c1b5eb0ae759e2fcc6f35dc5db4fc04367 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Sun, 18 Oct 2020 22:20:19 +0200 Subject: Mark the panic macros as diagnostic items. --- library/core/src/macros/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/core/src') diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index fe3eff04b4a..4999933fee5 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -2,6 +2,7 @@ #[macro_export] #[allow_internal_unstable(core_panic, const_caller_location)] #[stable(feature = "core", since = "1.6.0")] +#[rustc_diagnostic_item = "core_panic_macro"] macro_rules! panic { () => ( $crate::panic!("explicit panic") -- cgit 1.4.1-3-g733a5