Skip to content

str::as_bytes and friends have incorrect const stabilization version annotation #82085

@tbu-

Description

@tbu-
Contributor

#[rustc_const_stable(feature = "str_as_bytes", since = "1.32.0")]

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

Activity

m-ou-se

m-ou-se commented on Feb 14, 2021

@m-ou-se
Member
oli-obk

oli-obk commented on Feb 14, 2021

@oli-obk
Contributor

I just copy pasted these everywhere and forgot to check the versions on some of these. I guess I'll have to go through all of them to find out which ones I missed.

added
C-bugCategory: This is a bug.
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
on Feb 26, 2021
added a commit that references this issue on Mar 21, 2021
f826641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @oli-obk@m-ou-se@tbu-@camelid

    Issue actions

      `str::as_bytes` and friends have incorrect const stabilization version annotation · Issue #82085 · rust-lang/rust