Uh oh!
There was an error while loading. Please reload this page.
Change untagged_unions to not allow union fields with drop - #62330
Conversation
rust-highfive
commented
Jul 3, 2019
Some changes occurred in diagnostic error codes |
rust-highfive
commented
Jul 3, 2019
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
Centril
commented
Jul 3, 2019
cc tracking issue: #55149 |
a51a67a to
81949b0Comparebors
commented
Jul 5, 2019
☔ The latest upstream changes (presumably #62419) made this pull request unmergeable. Please resolve the merge conflicts. |
81949b0 to
0951ccaCompareeddyb
commented
Jul 11, 2019
r? @RalfJung |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Jul 27, 2019
☔ The latest upstream changes (presumably #63029) made this pull request unmergeable. Please resolve the merge conflicts. |
JohnTitor
commented
Aug 4, 2019
Ping from triage: @SimonSapin, any updates on this? you should also resolve conflicts. |
0951cca to
d2a4d57CompareSimonSapin
commented
Aug 5, 2019
Rebased, but I’m not the original author of this code so I feel I’m not able to answer some of the review comments. I’d appreciate if someone more familiar with compiler internals is willing to take over. |
rust-highfive
commented
Aug 5, 2019
The job 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 |
f8b45dd to
bb5a652CompareRalfJung
commented
Oct 21, 2019
That fixes my reservations. :) Let's finally do this... thanks to everyone involved! @bors r+ |
bors
commented
Oct 21, 2019
📌 Commit 875bdd5 has been approved by |
bors
commented
Oct 21, 2019
⌛ Testing commit 875bdd5 with merge da66b096c142097755e3474b7f1b3f2dafd61f9a... |
… r=RalfJung Change untagged_unions to not allow union fields with drop This is a rebase of rust-lang#56440, massaged to solve merge conflicts and make the test suite pass. Change untagged_unions to not allow union fields with drop Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in `ManuallyDrop` (or similar). The stable rule remains, that union fields must be `Copy`. We use the new rule for the `untagged_union` feature. Tracking issue: rust-lang#55149
Centril
commented
Oct 21, 2019
@bors retry rolled up. |
bors
commented
Oct 21, 2019
⌛ Testing commit 875bdd5 with merge b3e8ca17bd0ec17cd42fb43f92ff37e4a72fa7b1... |
… r=RalfJung Change untagged_unions to not allow union fields with drop This is a rebase of rust-lang#56440, massaged to solve merge conflicts and make the test suite pass. Change untagged_unions to not allow union fields with drop Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in `ManuallyDrop` (or similar). The stable rule remains, that union fields must be `Copy`. We use the new rule for the `untagged_union` feature. Tracking issue: rust-lang#55149
Centril
commented
Oct 21, 2019
@bors retry rolled up. |
Rollup of 7 pull requests Successful merges: - #62330 (Change untagged_unions to not allow union fields with drop) - #65092 (make is_power_of_two a const function) - #65621 (miri: add write_bytes method to Memory doing bounds-checks and supporting iterators) - #65647 (Remove unnecessary trait bounds and derivations) - #65653 (keep the root dir clean from debugging) - #65660 (Rename `ConstValue::Infer(InferConst::Canonical(..))` to `ConstValue::Bound(..)`) - #65663 (Fix typo from #65214) Failed merges: r? @ghost
bluss
commented
Oct 23, 2019
Awesome. Thanks to all that worked on this! |
This is a rebase of #56440, massaged to solve merge conflicts and make the test suite pass.
Change untagged_unions to not allow union fields with drop
Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in
ManuallyDrop(or similar).The stable rule remains, that union fields must be
Copy. We use the new rule for theuntagged_unionfeature.Tracking issue: #55149