-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Simplify and consolidate the way we handle construct OutlivesEnvironment
for lexical region resolution
#136038
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
Conversation
Some changes occurred in engine.rs, potentially modifying the public API of The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
dc0f24f
to
485c6f4
Compare
Simplify and consolidate the way we handle construct `OutlivesEnvironment` for lexical region resolution ... and also remove `region_bound_pairs` which is just totally redundant. This is best reviewed commit-by-commit. I tried to consolidate the API for lexical region resolution *first*, then change the API when it was finally behind a single surface. Finally, I removed `region_bound_pairs` from borrowck + type outlives. r? lcnr or reassign
bors why @bors r- retry |
@bors try |
Simplify and consolidate the way we handle construct `OutlivesEnvironment` for lexical region resolution ... and also remove `region_bound_pairs` which is just totally redundant. This is best reviewed commit-by-commit. I tried to consolidate the API for lexical region resolution *first*, then change the API when it was finally behind a single surface. Finally, I removed `region_bound_pairs` from borrowck + type outlives. r? lcnr or reassign
@@ -55,7 +55,7 @@ The assumed outlives constraints for implicit bounds are computed using the | |||
MIR borrowck adds the outlives constraints for both the normalized and unnormalized types, | |||
lexical region resolution [only uses the unnormalized types][notnorm]. | |||
|
|||
[`fn OutlivesEnvironment::with_bounds`]: https://github.com/rust-lang/rust/blob/5b8bc568d28b2e922290c9a966b3231d0ce9398b/compiler/rustc_infer/src/infer/outlives/env.rs#L90-L97 | |||
[`fn OutlivesEnvironment::new`]: TODO |
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.
This is an interesting situation where I don't yet have a commit hash to put here until this is ready to land :>
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.
You could just put master
instead of a commit hash for now
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.
edit: ah, might force push until merge...
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (0aed6e1): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary 0.8%, secondary -2.9%)This 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.
CyclesResults (primary 1.1%)This 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: 774.222s -> 771.853s (-0.31%) |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Simplify and consolidate the way we handle construct `OutlivesEnvironment` for lexical region resolution ... and also remove `region_bound_pairs` which is just totally redundant. This is best reviewed commit-by-commit. I tried to consolidate the API for lexical region resolution *first*, then change the API when it was finally behind a single surface. Finally, I removed `region_bound_pairs` from borrowck + type outlives. r? lcnr or reassign
93b52c8
to
e883ffc
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Simplify and consolidate the way we handle construct `OutlivesEnvironment` for lexical region resolution ... and also remove `region_bound_pairs` which is just totally redundant. This is best reviewed commit-by-commit. I tried to consolidate the API for lexical region resolution *first*, then change the API when it was finally behind a single surface. Finally, I removed `region_bound_pairs` from borrowck + type outlives. r? lcnr or reassign
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (d9c2438): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -0.2%)This 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 771.158s -> 769.798s (-0.18%) |
@rustbot ready |
r=me after removing the TODO |
e883ffc
to
8e0909d
Compare
@bors r=lcnr |
☀️ Test successful - checks-actions |
Finished benchmarking commit (5a45ab9): 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)Results (primary 2.9%, secondary 1.9%)This 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.
CyclesResults (secondary 1.9%)This 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: 776.287s -> 778.535s (0.29%) |
This is best reviewed commit-by-commit. I tried to consolidate the API for lexical region resolution first, then change the API when it was finally behind a single surface.
r? lcnr or reassign