Skip to content

librustc: Implement C-like enum constants - #4086

Closed
pcwalton wants to merge 2 commits into
rust-lang:incomingfrom
pcwalton:c-like-enum-consts
Closed

pcwalton wants to merge 2 commits into
rust-lang:incomingfrom
pcwalton:c-like-enum-consts

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

r? @catamorphism (only commit 2)

@catamorphism

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

3 participants