Skip to content

Added Ascii encoding, some cleanups#5980

Merged
bors merged 7 commits into
rust-lang:incomingfrom
Kimundi:ascii-encoding
Apr 23, 2013
Merged

Added Ascii encoding, some cleanups#5980
bors merged 7 commits into
rust-lang:incomingfrom
Kimundi:ascii-encoding

Conversation

@Kimundi

@Kimundi Kimundi commented Apr 20, 2013

Copy link
Copy Markdown
Contributor

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

Comment thread src/libcore/str.rs Outdated

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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

Kimundi commented Apr 22, 2013

Copy link
Copy Markdown
Contributor Author

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

@Kimundi

Kimundi commented Apr 22, 2013

Copy link
Copy Markdown
Contributor Author

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