Uh oh!
There was an error while loading. Please reload this page.
Clarify the semantics of enum discriminants - #31772
Conversation
rust-highfive
commented
Feb 19, 2016
(rust_highfive has picked a reviewer for you, use r? to override) |
apasel422
commented
Feb 19, 2016
@pnkfelix "specify"? |
pnkfelix
commented
Feb 19, 2016
@apasel422 works for me |
Aatch
commented
Feb 20, 2016
The error explanation is somewhat misleading, we actually use the smallest valid integer type (with a preference for unsigned integers) when no We probably shouldn't replicate that. |
nodakai
commented
Feb 20, 2016
@Aatch Are you suggesting to fix |
Aatch
commented
Feb 22, 2016
@nodakai it's the same issue here as in |
nodakai
commented
Feb 22, 2016
@Aatch So, what should I do? Are you suggesting me to fix |
Aatch
commented
Feb 22, 2016
@nodakai I think I may have been misremembering your wording earlier, confusing it with the |
steveklabnik
commented
Feb 22, 2016
I would agree with "specify" r=me after |
nodakai
commented
Mar 6, 2016
Extended the scope of the patch to include Avoided the word "assign" in referring to enum declarations because "assign" often implies an update of a mutable state. |
steveklabnik
commented
Mar 8, 2016
@bors: r+ rollup Thanks! |
bors
commented
Mar 8, 2016
📌 Commit 969d027 has been approved by |
Clarify the semantics of enum discriminants cf. https://doc.rust-lang.org/error-index.html#E0082 > The default type for enum discriminants is isize, but it can be adjusted by adding the repr attribute to the enum declaration. It would be great if anyone could check my English.
Clarify the semantics of enum discriminants cf. https://doc.rust-lang.org/error-index.html#E0082 > The default type for enum discriminants is isize, but it can be adjusted by adding the repr attribute to the enum declaration. It would be great if anyone could check my English.
cf. https://doc.rust-lang.org/error-index.html#E0082
It would be great if anyone could check my English.