diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 36c390babebe9..de346afe6f367 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -27,7 +27,7 @@ macro_rules! panic { #[stable(feature = "core", since = "1.6.0")] #[rustc_diagnostic_item = "core_panic_macro"] macro_rules! panic { - // Expands to either `$crate::panic_2015` or `$crate::panic_2021` + // Expands to either `$crate::panic::panic_2015` or `$crate::panic::panic_2021` // depending on the edition of the caller. ($($arg:tt)*) => { /* compiler built-in */ diff --git a/library/std/src/macros.rs b/library/std/src/macros.rs index cc021ff345eb3..b59d22cba09b4 100644 --- a/library/std/src/macros.rs +++ b/library/std/src/macros.rs @@ -26,7 +26,7 @@ macro_rules! panic { #[allow_internal_unstable(edition_panic)] #[cfg_attr(not(test), rustc_diagnostic_item = "std_panic_macro")] macro_rules! panic { - // Expands to either `$crate::panic_2015` or `$crate::panic_2021` + // Expands to either `$crate::panic::panic_2015` or `$crate::panic::panic_2021` // depending on the edition of the caller. ($($arg:tt)*) => { /* compiler built-in */