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:
Shoyu Vanilla (Flint)
2026-04-29 10:40:48 +09:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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")]
+2 -2
View File
@@ -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)*) {
+1 -1
View File
@@ -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.