pls this time
This commit is contained in:
parent
e3dd616911
commit
085d52c588
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ macro_rules! assert_ne {
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(assert_matches)]
|
/// #![feature(assert_matches)]
|
||||||
///
|
///
|
||||||
/// use std::assert::assert_matches;
|
/// use std::assert_matches::assert_matches;
|
||||||
///
|
///
|
||||||
/// let a = 1u32.checked_add(2);
|
/// let a = 1u32.checked_add(2);
|
||||||
/// let b = 1u32.checked_sub(2);
|
/// let b = 1u32.checked_sub(2);
|
||||||
|
@ -301,7 +301,7 @@ macro_rules! debug_assert_ne {
|
||||||
#[allow_internal_unstable(assert_matches)]
|
#[allow_internal_unstable(assert_matches)]
|
||||||
#[rustc_macro_transparency = "semitransparent"]
|
#[rustc_macro_transparency = "semitransparent"]
|
||||||
pub macro debug_assert_matches($($arg:tt)*) {
|
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.
|
/// Returns whether the given expression matches any of the given patterns.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue