-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Ascii encoding, some cleanups #5980
Conversation
#[cfg(stage2)] | ||
#[cfg(stage3)] | ||
#[path = "str/ascii.rs"] | ||
mod ascii; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be a sub-module of str
, since it's only related to it in the same way it is to [u8]
(conversion). Perhaps a top-level module in libstd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, could put it in a separate top-level module, It's globally imported in the prelude anyway. I'd be in favor of having at least ascii in core though (other byte encodings, codepages etc I'd put in std, though)
Removed deriving Ord, which allowed to remove the stage markers
Wait, no r+ yet, found a missing assert... |
Ready now. |
Added Ascii type to use for byte inputs that are known to contain Ascii only.
Add a lint to prevent `create_dir` from being used This closes rust-lang#5950 changelog: none
Subtree push 2023-12-12
Added Ascii type to use for byte inputs that are known to contain Ascii only.