str::as_bytes
and friends have incorrect const stabilization version annotation
#82085
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-bug
Category: This is a bug.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
rust/library/core/src/str/mod.rs
Line 220 in 8e54a21
These were stabilized in 7767e7f as part of #63770 which was only included in 1.39.0 and up (GitHub displays this in the commit link).
The attribute was added in 5e17e39 as part of #67136, one could presumably check the other version attributes as well.
Affects:
str::as_bytes
str::is_empty
str::len
The text was updated successfully, but these errors were encountered: