We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3dd616 commit 085d52cCopy full SHA for 085d52c
library/core/src/macros/mod.rs
@@ -127,7 +127,7 @@ macro_rules! assert_ne {
127
/// ```
128
/// #![feature(assert_matches)]
129
///
130
-/// use std::assert::assert_matches;
+/// use std::assert_matches::assert_matches;
131
132
/// let a = 1u32.checked_add(2);
133
/// let b = 1u32.checked_sub(2);
@@ -301,7 +301,7 @@ macro_rules! debug_assert_ne {
301
#[allow_internal_unstable(assert_matches)]
302
#[rustc_macro_transparency = "semitransparent"]
303
pub macro debug_assert_matches($($arg:tt)*) {
304
- if $crate::cfg!(debug_assertions) { $crate::assert::assert_matches!($($arg)*); }
+ if $crate::cfg!(debug_assertions) { $crate::assert_matches::assert_matches!($($arg)*); }
305
}
306
307
/// Returns whether the given expression matches any of the given patterns.
0 commit comments