Uh oh!
There was an error while loading. Please reload this page.
Add feature to enable bind by move pattern guards - #54034
Conversation
rust-highfive
commented
Sep 7, 2018
r? @varkor (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Oh, I guess it would be nice (when on nightly and with MIR-borrowck enabled) if this issued a diagnostic suggesting the feature gate.
There was a problem hiding this comment.
(done, see commit c329897)
There was a problem hiding this comment.
Could also be useful to suggest enabling NLL and the feature if not? Perhaps that's a little convoluted though.
There was a problem hiding this comment.
I don't think that's necessary; the 2018 edition has NLL enabled anyway (under migrate mode), so I think that will be enough.
bors
commented
Sep 10, 2018
☔ The latest upstream changes (presumably #54093) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
varkor
commented
Sep 11, 2018
The implementation looks good to me, but I'd feel more comfortable if someone more familiar with borrowck double-checked. |
c329897 to
1bdc926Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1bdc926 to
e801defCompare
This comment has been minimized.
This comment has been minimized.
e801def to
40d8f54CompareNote it requires MIR-borrowck to be enabled to actually do anything. Note also that it implicitly turns off our AST-based check for mutation in guards.
Apparently copyright notices are no longer necessary apparently. (See rust-lang#43498 and rust-lang#53654.)
…]` when it might fix the code.
40d8f54 to
3a07d3dComparepnkfelix
commented
Sep 17, 2018
@bors r=nikomatsakis |
bors
commented
Sep 17, 2018
📌 Commit 3a07d3d has been approved by |
bors
commented
Sep 18, 2018
…ds, r=nikomatsakis Add feature to enable bind by move pattern guards Implement #15287 as described on #15287 (comment)
bors
commented
Sep 18, 2018
☀️ Test successful - status-appveyor, status-travis |
Implement #15287 as described on #15287 (comment)