about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJane Lusby <jlusby@yaah.dev>2021-07-16 12:16:39 -0700
committerJane Lusby <jlusby@yaah.dev>2021-07-16 12:16:39 -0700
commit085d52c5882dba0097b8367f02d303fffd5b95ae (patch)
tree1a144f7efc6d4b3ff639a1bd87f022f66b4794c5
parente3dd61691181bf571a3b553c655b4ced725b6d81 (diff)
downloadrust-085d52c5882dba0097b8367f02d303fffd5b95ae.tar.gz
rust-085d52c5882dba0097b8367f02d303fffd5b95ae.zip
pls this time
-rw-r--r--library/core/src/macros/mod.rs4
1 files 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.