Uh oh!
There was an error while loading. Please reload this page.
Replace tuple of infer vars for upvar_tys with single infer var - #77873
Conversation
This commit allows us to decide the number of captures required after completing capture ananysis, which is required as part of implementing RFC-2229. Co-authored-by: Aman Arora <me@aman-arora.com> Co-authored-by: Jenny Wills <wills.jenniferg@gmail.com>
Depending on if upvar_tys inferred or not, we were returning either an inference variable which later resolves to a tuple or else the upvar tys themselves Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
rust-highfive
commented
Oct 12, 2020
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @lcnr (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
arora-aman
commented
Oct 12, 2020
nikomatsakis
left a comment
There was a problem hiding this comment.
This looks great -- I left some comments on how we could simplify, some of which I see now were outdated by later commits, but not all of them I think.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
arora-aman
commented
Oct 14, 2020
@nikomatsakis updated |
nikomatsakis
commented
Oct 14, 2020
@bors r+ |
bors
commented
Oct 14, 2020
📌 Commit a64ad51 has been approved by |
bors
commented
Oct 14, 2020
⌛ Testing commit a64ad51 with merge 24ca6e8ea039d1dad6de4c10cb036cc6cd241d81... |
bors
commented
Oct 14, 2020
💔 Test failed - checks-actions |
Dylan-DPC-zz
commented
Oct 14, 2020
@bors retry |
bors
commented
Oct 15, 2020
bors
commented
Oct 15, 2020
☀️ Test successful - checks-actions, checks-azure |
Mark-Simulacrum
commented
Oct 22, 2020
This appears to be a 3% regression on the wg-grammar benchmark, though wall times look like they're overall an improvement. Since this is appears to be a functional (not perf-related) change I am inclined to not do anything further here. |
This commit allows us to decide the number of captures required after
completing capture ananysis, which is required as part of implementing
RFC-2229.
closesrust-lang/project-rfc-2229#4
r? @nikomatsakis