-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Implement some FIXME methods in the new trait solver #106742
Implement some FIXME methods in the new trait solver #106742
Conversation
Some changes occurred to the core trait solver |
☔ The latest upstream changes (presumably #106743) made this pull request unmergeable. Please resolve the merge conflicts. |
4bf30e5
to
10c12a5
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.
r=me after nits
10c12a5
to
1de196f
Compare
@bors r=lcnr |
}), | ||
) else { bug!(); }; | ||
assert!(obligations.is_empty()); | ||
value |
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.
ah, this should be resp.certainty
. The rest of this hack is fine, but overflow handling is completely wrong because of this.
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.
Wait, this returns value
which is just resp.certainty
(mapped under instantiate_query_response_and_region_obligations
, but for overflows it shouldn't matter, right?)
Otherwise not sure if I understand this comment.
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.
ah, I was confused sorry 😅 didn't see that you provided resp.certainty
twice, once as value
and once as certainty
☀️ Test successful - checks-actions |
Finished benchmarking commit (ae4d89d): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
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.
CyclesThis benchmark run did not return any relevant results for this metric. |
Implement just enough of the solver's response logic to make it not ICE.
Also, fix a bug with
no_bound_vars
call failing due to canonical bound vars.r? @lcnr