-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Refactor NLL constraint generation and most of polonius fact generation #118216
Conversation
5df5de6
to
5e0f7cd
Compare
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.
Fairly straightforward refactor. r=me if you'd like
Thanks for taking a look, Jack! It's not particularly urgent as you'd expect, so it's completely fine to wait for a bit in case Matthew doesn't have time to look at this (or they can r=you). |
This comment was marked as resolved.
This comment was marked as resolved.
and move the polonius module to the borrowck root
fix a comment and move a variable where it's used
to help review, this duplicates the existing NLL + polonius constraint generation component, before splitting them up to only do what they individually need.
5e0f7cd
to
edb3825
Compare
This comment has been minimized.
This comment has been minimized.
edb3825
to
f969af2
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (caf7300): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 672.931s -> 673.917s (0.15%) |
As discussed in #118175, NLL "constraint generation" is only about liveness, but currently also contains legacy polonius fact generation. The latter is quite messy, and this PR cleans this up to prepare for its future removal:
There should be no behavior changes, and tests seem to behave the same as master: without polonius, with legacy polonius, with the in-tree polonius.
I've split everything into smaller logical commits for easier review, as it required quite a bit of code to be split and moved around, but it should all be trivial changes.
r? @matthewjasper