Skip to content

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

Closed
@tbu-

Description

@tbu-

#[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

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

No branches or pull requests

Issue actions