-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Better closure requirement propagation. #148329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
440270a to
b1299ee
Compare
|
Some changes occurred in src/tools/cargo cc @ehuss |
This comment has been minimized.
This comment has been minimized.
b1299ee to
8c66aab
Compare
|
Excuse me |
1e89617 to
a36dc08
Compare
|
@bors try @rust-timer let's do a crater run, even if I think it should be fine. Then I/we need to write an FCP proposal 😁 |
This comment has been minimized.
This comment has been minimized.
Do not propogate unnecessary closure constraints.
Alright! |
BTW, I would love to help with this if isn't to much to ask. I have never done it, so I might as well get some experience. :) |
This comment has been minimized.
This comment has been minimized.
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
@rust-timer build f27166d |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (f27166d): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary -4.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 474.205s -> 473.796s (-0.09%) |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits, then r=me
| // This test checks that the compiler does not propagate 'd: 'c when propagating region errors | ||
| // for the closure argument. If it did, this would fail to compile, eventhough it's a valid program. | ||
| // It should only propagate 'd: 'b. | ||
| // PR #148329 explains this in detail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean the stabilization report, or the new comments in try_propagate_universal_region_error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just te pr in general, like the information contained in it.
Is this not really done in tests?
|
It would be cool to also clean the git history up before merging. |
402f3e0 to
66db854
Compare
|
|
@rustbot ready
I don't have |
This comment has been minimized.
This comment has been minimized.
|
And just for completeness' sake, there still are a handful of todos in the stabilization report.
|
66db854 to
0627df9
Compare
|
@bors delegate+ Now you can approve the PR :) |
|
✌️ @LorrensP-2158466, you can now approve this pull request! If @Kobzol told you to " |
@LorrensP-2158466 i remember u looking into which tests go from pass -> fail for these TODOs? 🤔 can you link to one of them for each of these todos before merging? |
Do you mean those listed in the zulip thread? #t-types > work on FCP proposal for closure requirements @ 💬
And I have never found such a test nor could I create one. |
Fixes #148289
Fixes #104477
Should unblock #148187
When propagating closure requirements we:
longer_fr.longer_fr-: shorter_fr+to only these constraints between external regions which are required regardless. If no such constraint exists, we fall back to propagating all of them.See the FCP for more information.
r? @lcnr