mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
Rollup merge of #155943 - romancitodev:fix/version-mismatch, r=nia-e
fix: ✏️ forgot to change the stable version for `assert_matches!` macro. The `assert_matches` macro was delayed because of rust-lang/rust#154406 and the `#[stable(since)]` wasn't changed to the next version.
This commit is contained in:
@@ -209,7 +209,7 @@
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
||||
#[stable(feature = "assert_matches", since = "1.95.0")]
|
||||
#[stable(feature = "assert_matches", since = "1.96.0")]
|
||||
pub use crate::macros::{assert_matches, debug_assert_matches};
|
||||
|
||||
#[unstable(feature = "derive_from", issue = "144889")]
|
||||
|
||||
@@ -164,7 +164,7 @@ macro_rules! assert_ne {
|
||||
/// assert_matches!(a, Some(x) if x > 100);
|
||||
/// // assert_matches!(a, Some(x) if x < 100); // panics
|
||||
/// ```
|
||||
#[stable(feature = "assert_matches", since = "1.95.0")]
|
||||
#[stable(feature = "assert_matches", since = "1.96.0")]
|
||||
#[allow_internal_unstable(panic_internals)]
|
||||
#[rustc_macro_transparency = "semiopaque"]
|
||||
pub macro assert_matches {
|
||||
@@ -391,7 +391,7 @@ macro_rules! debug_assert_ne {
|
||||
/// debug_assert_matches!(a, Some(x) if x > 100);
|
||||
/// // debug_assert_matches!(a, Some(x) if x < 100); // panics
|
||||
/// ```
|
||||
#[stable(feature = "assert_matches", since = "1.95.0")]
|
||||
#[stable(feature = "assert_matches", since = "1.96.0")]
|
||||
#[allow_internal_unstable(assert_matches)]
|
||||
#[rustc_macro_transparency = "semiopaque"]
|
||||
pub macro debug_assert_matches($($arg:tt)*) {
|
||||
|
||||
@@ -746,7 +746,7 @@ pub mod arch {
|
||||
assert_eq, assert_ne, debug_assert, debug_assert_eq, debug_assert_ne, r#try, unimplemented,
|
||||
unreachable, write, writeln,
|
||||
};
|
||||
#[stable(feature = "assert_matches", since = "1.95.0")]
|
||||
#[stable(feature = "assert_matches", since = "1.96.0")]
|
||||
pub use core::{assert_matches, debug_assert_matches};
|
||||
|
||||
// Re-export unstable derive macro defined through core.
|
||||
|
||||
Reference in New Issue
Block a user