Uh oh!
There was an error while loading. Please reload this page.
Compute the layout of uninhabited structs - #64987
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| assert!(field < count as u64, | ||
| "Tried to access field {} of union with {} fields", field, count); | ||
| "Tried to access field {} of union {:#?} with {} fields", | ||
| field, base.layout, count); |
There was a problem hiding this comment.
Can you add this assert to FieldPlacement::offset? And even add an offset_u64, if you want (I guess offset(i) can just call offset_u64(i as u64)? or maybe we just want an i: impl Into<u64> on offset).
There was a problem hiding this comment.
u64 does not implement From<usize> :(
Uh oh!
There was an error while loading. Please reload this page.
eddyb
commented
Oct 14, 2019
@bors r+ |
bors
commented
Oct 14, 2019
📌 Commit 373c362 has been approved by |
bors
commented
Oct 14, 2019
⌛ Testing commit 373c362 with merge 2fe9b4b0bf4f8842e26f58d928cf6a5d5153fbfa... |
…=eddyb Compute the layout of uninhabited structs fixesrust-lang#64506 r? @eddyb
Centril
commented
Oct 14, 2019
@bors retry rolled up. |
bors
commented
Oct 14, 2019
⌛ Testing commit 373c362 with merge 434fcab8166c6478551efb023d412fa6e67b0731... |
rust-highfive
commented
Oct 14, 2019
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bors
commented
Oct 14, 2019
💔 Test failed - checks-azure |
Centril
commented
Oct 14, 2019
@bors retry |
bors
commented
Oct 14, 2019
alex
commented
Oct 14, 2019
@Centril I assume you noticed, but just in case, FYI every single build appears to be failing on a connection error to the azure ubuntu apt repos. |
emilyalbini
commented
Oct 14, 2019
@bors treeclosed=1000 |
Centril
commented
Oct 14, 2019
@bors treeclose=1000 network problems |
emilyalbini
commented
Oct 14, 2019
@bors treeclosed- This build seems to be ok. |
bors
commented
Oct 14, 2019
☀️ Test successful - checks-azure |
fixes#64506
r? @eddyb