Skip to content

make empty enums non-affine #10278

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

Closed
nikomatsakis opened this issue Nov 5, 2013 · 1 comment · Fixed by #10289
Closed

make empty enums non-affine #10278

nikomatsakis opened this issue Nov 5, 2013 · 1 comment · Fixed by #10289

Comments

@nikomatsakis
Copy link
Contributor

Today empty enums are affine. I can't think of a reason for this to be. There is this comment in the source that says: "we somewhat arbitrary declare that empty enums are non-copyable". For all I know I wrote it. Anyway, in my rewrite of type contents, I forgot to reproduce this arbitrary rule, and I'm not inclined to add it back unless someone objects.

@nikomatsakis
Copy link
Contributor Author

cc #10157 #10158

bors added a commit that referenced this issue Nov 6, 2013
…actor, r=pcwalton

See #10157. This compiles now.

Fixes #10278.
willingc pushed a commit to willingc/rust that referenced this issue Nov 12, 2013
…tents-refactor, r=pcwalton

See rust-lang#10157. This compiles now.

Fixes rust-lang#10278.

Fixed xfail for nbody shootout benchmark by correcting command line parse.
Cleaned up unneeded imports and type changes to resolve compiler warnings.
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 a pull request may close this issue.

1 participant