mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add tracking issue for assert_matches.
This commit is contained in:
parent
f223affd7a
commit
80fcdef3b5
@ -135,7 +135,7 @@ macro_rules! assert_ne {
|
|||||||
/// assert_matches!(c, Ok(x) | Err(x) if x.len() < 100);
|
/// assert_matches!(c, Ok(x) | Err(x) if x.len() < 100);
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[unstable(feature = "assert_matches", issue = "none")]
|
#[unstable(feature = "assert_matches", issue = "82775")]
|
||||||
#[allow_internal_unstable(core_panic)]
|
#[allow_internal_unstable(core_panic)]
|
||||||
macro_rules! assert_matches {
|
macro_rules! assert_matches {
|
||||||
($left:expr, $( $pattern:pat )|+ $( if $guard: expr )? $(,)?) => ({
|
($left:expr, $( $pattern:pat )|+ $( if $guard: expr )? $(,)?) => ({
|
||||||
@ -292,7 +292,7 @@ macro_rules! debug_assert_ne {
|
|||||||
/// debug_assert_matches!(c, Ok(x) | Err(x) if x.len() < 100);
|
/// debug_assert_matches!(c, Ok(x) | Err(x) if x.len() < 100);
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[unstable(feature = "assert_matches", issue = "none")]
|
#[unstable(feature = "assert_matches", issue = "82775")]
|
||||||
#[allow_internal_unstable(assert_matches)]
|
#[allow_internal_unstable(assert_matches)]
|
||||||
macro_rules! debug_assert_matches {
|
macro_rules! debug_assert_matches {
|
||||||
($($arg:tt)*) => (if $crate::cfg!(debug_assertions) { $crate::assert_matches!($($arg)*); })
|
($($arg:tt)*) => (if $crate::cfg!(debug_assertions) { $crate::assert_matches!($($arg)*); })
|
||||||
|
Loading…
Reference in New Issue
Block a user