-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for deprecating std::ascii module #93887
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a separate issue to track the potential deprecation of the
std::ascii,alloc::ascii, andcore::asciimodules, separated from #77174 per this comment. This issue will just saystd::asciifor simplicity since, excluding the already-deprecatedAsciiExttrait, these three modules are identical.Public API
Right now,
std::asciicontains the following APIs:trait AsciiExt(already deprecated)fn escape_default(b: u8) -> std::ascii::EscapeDefault(now duplicated by inherentu8::escape_ascii)struct EscapeDefault(impl Iteratorreturn value forescape_default, not re-exported anywhere)The deprecation would involve:
fn escape_default(already moved tou8::escape_ascii)struct EscapeDefaultsomewhere else, presumably instd::numstruct EscapeDefaultafter its re-export is made stablestd::asciimoduleSteps / History
Some of these may involve separate FCPs:
std::ascii::AsciiExt: Deprecate the AsciiExt trait in favor of inherent methods #49109u8::escape_ascii: Tracking Issue for inherent_ascii_escape #77174std::ascii::escape_default(not yet)std::ascii::EscapeDefault(not yet)std::ascii::EscapeDefault(not yet)std::asciimodule (not yet)Unresolved Questions
std::ascii::EscapeDefaultbe moved to?std::num::EscapeAsciiseems the most logical, but there could be other options.