Skip to content
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

Merged
merged 7 commits into from
Apr 23, 2013
Merged

Conversation

Kimundi
Copy link
Member

@Kimundi Kimundi commented Apr 20, 2013

Added Ascii type to use for byte inputs that are known to contain Ascii only.

#[cfg(stage2)]
#[cfg(stage3)]
#[path = "str/ascii.rs"]
mod ascii;
Copy link
Contributor

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?

Copy link
Member Author

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
@Kimundi
Copy link
Member Author

Kimundi commented Apr 22, 2013

Wait, no r+ yet, found a missing assert...

@Kimundi
Copy link
Member Author

Kimundi commented Apr 22, 2013

Ready now.

bors added a commit that referenced this pull request Apr 22, 2013
Added Ascii type to use for byte inputs that are known to contain Ascii only.
@bors bors closed this Apr 23, 2013
@bors bors merged commit bf4f088 into rust-lang:incoming Apr 23, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 10, 2020
Add a lint to prevent `create_dir` from being used

This closes rust-lang#5950
changelog: none
calebcartwright added a commit to calebcartwright/rust that referenced this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants