From 085d52c5882dba0097b8367f02d303fffd5b95ae Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Fri, 16 Jul 2021 12:16:39 -0700 Subject: [PATCH] pls this time --- library/core/src/macros/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 8ce441e80bf..60eca35068e 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -127,7 +127,7 @@ macro_rules! assert_ne { /// ``` /// #![feature(assert_matches)] /// -/// use std::assert::assert_matches; +/// use std::assert_matches::assert_matches; /// /// let a = 1u32.checked_add(2); /// let b = 1u32.checked_sub(2); @@ -301,7 +301,7 @@ macro_rules! debug_assert_ne { #[allow_internal_unstable(assert_matches)] #[rustc_macro_transparency = "semitransparent"] pub macro debug_assert_matches($($arg:tt)*) { - if $crate::cfg!(debug_assertions) { $crate::assert::assert_matches!($($arg)*); } + if $crate::cfg!(debug_assertions) { $crate::assert_matches::assert_matches!($($arg)*); } } /// Returns whether the given expression matches any of the given patterns.