diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-28 01:58:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-28 01:58:50 +0000 |
| commit | bd36f256789a69f636a725f49991c64744681fce (patch) | |
| tree | be64e9dcf331bac0f00084d6524898069b478464 | |
| parent | 5633102807c744822204ea75573b5e38eaf1fe27 (diff) | |
| parent | 9fed91fde0c72ef60c3c7931d34a9e841e0b00e7 (diff) | |
| download | rust-bd36f256789a69f636a725f49991c64744681fce.tar.gz rust-bd36f256789a69f636a725f49991c64744681fce.zip | |
Rollup merge of #140351 - rust-lang:notriddle/stability-use, r=thomcc
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.
Fixes https://github.com/rust-lang/rust/issues/140344
| -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 3c22b8a5589..8efd491f02d 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -703,8 +703,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)] @@ -718,8 +724,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 |
