Uh oh!
There was an error while loading. Please reload this page.
Various const eval and pattern matching ICE fixes - #67192
Conversation
oli-obk
commented
Dec 10, 2019
cc @varkor for the match code changes |
There was a problem hiding this comment.
This chain of FIXMEs is getting some weird kind of joke.^^
I think it referred to the "lazy" vs "evaluated" AllocId for statics?
There was a problem hiding this comment.
The last two are gone in my PR 😄
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Dec 10, 2019
I don't understand the motivation for this. This changes one of many allocation methods to avoid ZST, but we may still get empty allocations elsewhere. (At least, there's no assertion that I could see in |
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Dec 10, 2019
I could set it up so ZST |
oli-obk
commented
Dec 13, 2019
I tried to keep every change as independent of all the others as possible and make a commit for each step. Some of these could be pulled out into a separate PR without changing behaviour if you want. |
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Dec 13, 2019
☔ The latest upstream changes (presumably #67284) made this pull request unmergeable. Please resolve the merge conflicts. |
oli-obk
commented
Dec 13, 2019
This PR has now turned around 100% and is not changing behaviour wrt zst addresses anymore |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
oli-obk
commented
Dec 20, 2019
I believe I have addressed all review comments |
oli-obk
commented
Dec 21, 2019
@bors try |
bors
commented
Dec 21, 2019
⌛ Trying commit d2ad810 with merge e45d134659ec3c8628d74e3ddb5c9f0d1df24223... |
oli-obk
commented
Dec 26, 2019
rebased over rustfmt and const_eval.rs split PRs @bors r=RalfJung,varkor |
bors
commented
Dec 26, 2019
📌 Commit f65a91e has been approved by |
…varkor Various const eval and pattern matching ICE fixes r? @RalfJung cc @spastorino This PR does not change existing behaviour anymore and just fixes a bunch of ICEs reachable from user code (sometimes even on stable via obscure union transmutes).
Rollup of 12 pull requests Successful merges: - #67112 (Refactor expression parsing thoroughly) - #67192 (Various const eval and pattern matching ICE fixes) - #67287 (typeck: note other end-point when checking range pats) - #67459 (prune ill-conceived BTreeMap iter_mut assertion and test its mutability) - #67576 (reuse `capacity` variable in slice::repeat) - #67602 (Use issue = "none" instead of "0" in intrinsics) - #67614 (Set callbacks globally) - #67617 (Remove `compiler_builtins_lib` documentation) - #67629 (Remove redundant link texts) - #67632 (Convert collapsed to shortcut reference links) - #67633 (Update .mailmap) - #67635 (Document safety of Path casting) Failed merges: r? @ghost
bors
commented
Dec 27, 2019
Various const eval and pattern matching ICE fixes r? @RalfJung cc @spastorino This PR does not change existing behaviour anymore and just fixes a bunch of ICEs reachable from user code (sometimes even on stable via obscure union transmutes).
bors
commented
Dec 27, 2019
☀️ Test successful - checks-azure |
rust-highfive
commented
Dec 27, 2019
Tested on commit rust-lang/rust@8f5f8f9. Direct link to PR: <rust-lang/rust#67192> 💔 miri on windows: test-pass → build-fail (cc @oli-obk@eddyb@RalfJung, @rust-lang/infra). 💔 miri on linux: test-pass → build-fail (cc @oli-obk@eddyb@RalfJung, @rust-lang/infra).
Remove all uses of `to_ptr` Also only works on top of rust-lang/rust#67192
r? @RalfJung
cc @spastorino
This PR does not change existing behaviour anymore and just fixes a bunch of ICEs reachable from user code (sometimes even on stable via obscure union transmutes).