Uh oh!
There was an error while loading. Please reload this page.
CTFE: simplify ConstValue by not checking for alignment - #63079
Conversation
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
oli-obk
commented
Jul 28, 2019
What do you think about removing the |
RalfJung
commented
Jul 28, 2019
Hm. Not sure how well that code would factor. With #63075, we actually don't need the |
oli-obk
commented
Jul 28, 2019
I don't want to remove the field. Miri will keep using it. Const eval doesn't need it though. If you do UB in const eval, we don't promise we catch it. |
oli-obk
commented
Jul 28, 2019
We should probably find a way to make miri's |
With #63075 the field is effectively dead in Miri, though. For now. I think. |
oli-obk
commented
Jul 28, 2019
Ah, ok. We can revisit once that is resolved then. Can you make sure that it's documented $somewhere in the process, so that we actually do revisit? r=me with travis green |
RalfJung
commented
Jul 28, 2019
Agreed. But factoring that through the |
RalfJung
commented
Jul 28, 2019
@bors r=oli-obk |
bors
commented
Jul 28, 2019
📌 Commit cfb13b0eeb620dee597a99c4100b1464f589b731 has been approved by |
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Jul 29, 2019
⌛ Testing commit cfb13b0eeb620dee597a99c4100b1464f589b731 with merge 4034b4c3188a41efb8be7f415d0252d232da06b4... |
bors
commented
Jul 29, 2019
💔 Test failed - checks-azure |
This comment has been minimized.
This comment has been minimized.
RalfJung
commented
Jul 29, 2019
This comment has been minimized.
This comment has been minimized.
RalfJung
commented
Aug 2, 2019
Rebased. @oli-obk what do you think of checking alignment in validity even when the machine otherwise ignores alignment (as is now implemented here)? |
oli-obk
commented
Aug 5, 2019
I think it's very reasonable. We can always weaken validity checks if we need to. Hardening them is not easy to do. @bors r+ |
bors
commented
Aug 5, 2019
📌 Commit 0cf4329 has been approved by |
bors
commented
Aug 5, 2019
bors
commented
Aug 5, 2019
☀️ Test successful - checks-azure |
I hope the test suite actually covers the problematic cases here?
r? @oli-obk
Fixes#61952