diff options
| author | Michael Howell <michael@notriddle.com> | 2025-04-26 14:56:17 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2025-04-26 14:56:17 -0700 |
| commit | 9fed91fde0c72ef60c3c7931d34a9e841e0b00e7 (patch) | |
| tree | 2587050154e5b587f65c5df46d619fc0fd4f6d15 /library/std | |
| parent | 10fa3c449f6b1613b352a6cbf78d3d91fd9a1d81 (diff) | |
| download | rust-9fed91fde0c72ef60c3c7931d34a9e841e0b00e7.tar.gz rust-9fed91fde0c72ef60c3c7931d34a9e841e0b00e7.zip | |
docs: fix incorrect stability markers on `std::{todo, matches}`
This regression appeared in 916cfbcd3ed95a737b5a62103bbc4118ffe1eb2b. The change is behaving as expected (a non-glob re-export uses the stability marker on the `use` item, not the original one), but this part of the standard library didn't follow it.
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/lib.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index f77bf92a806..ee745426b52 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -704,8 +704,14 @@ pub use core::cfg_match; reason = "`concat_bytes` is not stable enough for use and is subject to change" )] pub use core::concat_bytes; +#[stable(feature = "matches_macro", since = "1.42.0")] +#[allow(deprecated, deprecated_in_future)] +pub use core::matches; #[stable(feature = "core_primitive", since = "1.43.0")] pub use core::primitive; +#[stable(feature = "todo_macro", since = "1.40.0")] +#[allow(deprecated, deprecated_in_future)] +pub use core::todo; // Re-export built-in macros defined through core. #[stable(feature = "builtin_macro_prelude", since = "1.38.0")] #[allow(deprecated)] @@ -719,8 +725,8 @@ pub use core::{ #[stable(feature = "rust1", since = "1.0.0")] #[allow(deprecated, deprecated_in_future)] pub use core::{ - assert_eq, assert_ne, debug_assert, debug_assert_eq, debug_assert_ne, matches, todo, r#try, - unimplemented, unreachable, write, writeln, + assert_eq, assert_ne, debug_assert, debug_assert_eq, debug_assert_ne, r#try, unimplemented, + unreachable, write, writeln, }; // Include a number of private modules that exist solely to provide |
