Repository navigation
Allow #[repr(i32)] for univariant enum - #31232
Conversation
```
#[repr(i32)]
enum Univariant {
X = 17
}
```
Fixes rust-lang#10292
|
r? @nrc (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
You should remove E0083 along with this change
|
I am amazed this worked without changes to trans. cc @rust-lang/compiler and @luqmana r+ if no one objects and with the error description removed. |
6c2f78f to
69c6292
Compare
|
Removed E0083. |
|
Why was this ever illegal in the first place? It makes no sense to me. |
|
Yea, looks good to me. Not sure why it was disallowed but should be fine if it builds and passes tests. |
69c6292 to
641267e
Compare
|
Updated with |
|
No objections. |
|
The reason this doesn't require any |
|
Thanks all! (And especially @stepancheg for the PR in the first place and some patience for the r+). @bors: r+ |
|
📌 Commit 641267e has been approved by |
```
enum Univariant {
X = 17
}
```
Fixes #10292
Fixes #10292