Skip to content

Wrong stabilization version for std::matches! since v1.86 #140344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
paolobarbolini opened this issue Apr 26, 2025 · 1 comment · Fixed by #140351
Closed

Wrong stabilization version for std::matches! since v1.86 #140344

paolobarbolini opened this issue Apr 26, 2025 · 1 comment · Fixed by #140351
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@paolobarbolini
Copy link
Contributor

Location

std::matches! in v1.85: https://doc.rust-lang.org/1.85.0/std/macro.matches.html
std::matches! in v1.86: https://doc.rust-lang.org/1.86.0/std/macro.matches.html
std::matches! in nightly: https://doc.rust-lang.org/nightly/std/macro.matches.html

Summary

The matches! macro was stabilized in v1.42, but later versions of Rust instead report the stabilization version as v1.0

@paolobarbolini paolobarbolini added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Apr 26, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 26, 2025
@ehuss
Copy link
Contributor

ehuss commented Apr 26, 2025

This seems to have regressed due to #135352. cc @notriddle

@Noratrieb Noratrieb removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 27, 2025
ChrisDenton added a commit to ChrisDenton/rust that referenced this issue Apr 28, 2025
… r=thomcc

docs: fix incorrect stability markers on `std::{todo, matches}`

This regression appeared in 916cfbc. 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 rust-lang#140344
ChrisDenton added a commit to ChrisDenton/rust that referenced this issue Apr 28, 2025
… r=thomcc

docs: fix incorrect stability markers on `std::{todo, matches}`

This regression appeared in 916cfbc. 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 rust-lang#140344
@bors bors closed this as completed in bd36f25 Apr 28, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Apr 28, 2025
Rollup merge of rust-lang#140351 - rust-lang:notriddle/stability-use, r=thomcc

docs: fix incorrect stability markers on `std::{todo, matches}`

This regression appeared in 916cfbc. 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 rust-lang#140344
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants