-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Apply nested goals certainty to InspectGoals
for normalizes-to
#142127
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 to the core trait solver cc @rust-lang/initiative-trait-system-refactor This PR changes a file inside |
9eb62ee
to
19be2d3
Compare
tests/crashes/140571.rs
Outdated
@@ -1,14 +0,0 @@ | |||
//@ known-bug: #140571 |
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 test was coincidentally fixed, but not for a particularly good reason. It's properly fixed in #142126.
@bors2 try @rust-timer queue Even if perf is bad, we still definitely need to do this for proof trees not to be wrong. |
This comment has been minimized.
This comment has been minimized.
Apply nested goals certainty to `InspectGoals` for normalizes-to ...so that normalizes-to goals don't have `Certainty::Yes` even if they have nested goals which don't hold. r? lcnr
Blocking this on #142085 so that I can remove the hack it introduces for normalizes-to goals. |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (7cf36c7): comparison URL. Overall result: ✅ improvements - 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 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 (secondary 0.8%)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: 751.682s -> 751.844s (0.02%) |
19be2d3
to
cd1d84e
Compare
changes to |
@bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Apply nested goals certainty to `InspectGoals` for normalizes-to ...so that normalizes-to goals don't have `Certainty::Yes` even if they have nested goals which don't hold. r? lcnr
@@ -120,15 +120,7 @@ impl<'a, 'tcx> ProofTreeVisitor<'tcx> for NestedObligationsForSelfTy<'a, 'tcx> { | |||
fn visit_goal(&mut self, inspect_goal: &InspectGoal<'_, 'tcx>) { | |||
// No need to walk into goal subtrees that certainly hold, since they | |||
// wouldn't then be stalled on an infer var. | |||
// FIXME: We also walk into normalizes-to goals since their certainty |
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.
hopefully this helps out with a bit of perf
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.
tho it maybe won't, since we wouldn't walk into nested normalizes-to goals if the parent goal isn't ambig either...
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (101fca2): comparison URL. Overall result: ✅ improvements - 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 countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 5.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 2.3%)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: 753.531s -> 756.65s (0.41%) |
sorry for not reviewing this earlier. the setup feels a bit iffy to me and i wanted to take a bit more time to look at it locally. I don't really think we can do much better here:
I don't really know how to improve this, but this is an improvement from the status quo @bors r+ |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing fd50e10 (parent) -> 6c8138d (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 6c8138de8f1c96b2f66adbbc0e37c73525444750 --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (6c8138d): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.3%, secondary -0.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
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: 755.158s -> 754.987s (-0.02%) |
...so that normalizes-to goals don't have
Certainty::Yes
even if they have nested goals which don't hold.r? lcnr