Skip to content

Incorrect deprecation notice on some AsciiExt methods #52085

Closed
@dtolnay

Description

@dtolnay

For example AsciiExt::is_ascii_hexdigit says:

This method will be deprecated in favor of the identically-named inherent methods on u8, char, [u8] and str.

But we decided not to carry is_ascii_hexdigit to methods on [u8] and str as discussed in #39658 (comment).

The deprecated methods that are not provided for [u8] and str should instead say something like:

This method will be deprecated in favor of the identically-named inherent methods on u8 and char. For [u8] use .iter().all(u8::is_ascii_hexdigit). For str use .bytes().all(|b| b.is_ascii_hexdigit()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions