Tracking Issue for deprecating std::ascii module #93887
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
This is a separate issue to track the potential deprecation of the
std::ascii
,alloc::ascii
, andcore::ascii
modules, separated from #77174 per this comment. This issue will just saystd::ascii
for simplicity since, excluding the already-deprecatedAsciiExt
trait, these three modules are identical.Public API
Right now,
std::ascii
contains the following APIs:trait AsciiExt
(already deprecated)fn escape_default(b: u8) -> std::ascii::EscapeDefault
(now duplicated by inherentu8::escape_ascii
)struct EscapeDefault
(impl Iterator
return value forescape_default
, not re-exported anywhere)The deprecation would involve:
fn escape_default
(already moved tou8::escape_ascii
)struct EscapeDefault
somewhere else, presumably instd::num
struct EscapeDefault
after its re-export is made stablestd::ascii
moduleSteps / 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::ascii
module (not yet)Unresolved Questions
std::ascii::EscapeDefault
be moved to?std::num::EscapeAscii
seems the most logical, but there could be other options.The text was updated successfully, but these errors were encountered: