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

librustc: Implement C-like enum constants #4086

Closed
wants to merge 2 commits into from

Conversation

pcwalton
Copy link
Contributor

r? @catamorphism (only commit 2)

@catamorphism
Copy link
Contributor

I don't see where there's any code that checks that an enum used in a constant is actually C-like. Was that in an earlier commit?

Looks ok otherwise, but I think it's pretty important to check this, since otherwise code that's silently wrong will be generated...

@catamorphism
Copy link
Contributor

r+

@pcwalton pcwalton closed this Dec 1, 2012
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
…ip1995

Zero single char names

Fixes: rust-lang#4086

changelog:
- Make the inequality strict
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.

None yet

3 participants