Skip to content

repr: represent char values as char literals rather than integers. #4551

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

Merged
merged 1 commit into from
Jan 20, 2013

Conversation

SimonSapin
Copy link
Contributor

Follow-up on #4473 and #4477, especially @graydon’s comment.

catamorphism added a commit that referenced this pull request Jan 20, 2013
repr: represent char values as char literals rather than integers.
@catamorphism catamorphism merged commit a438bdc into rust-lang:incoming Jan 20, 2013
@catamorphism
Copy link
Contributor

Thanks!

@SimonSapin
Copy link
Contributor Author

As pointed out on IRC this probably needs a test, but I’m not sure how to change or even run libcore’s test suite. Is there related documentation?

@jdm
Copy link
Contributor

jdm commented Jan 23, 2013

@sanxiyn
Copy link
Member

sanxiyn commented Jan 23, 2013

In this case, there is test_repr function at the end of libcore/repr.rs file. I'd just add a case for char values.

@SimonSapin SimonSapin deleted the char-repr branch June 4, 2014 23:22
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.

4 participants