-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Use obligation ctxt instead of dyn TraitEngine #104509
Conversation
match ocx.select_all_or_error().as_slice() { | ||
[] => (), | ||
_ => return Err(NoSolution), | ||
} |
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.
What does calling select_all_or_error
here do to the select_*
calls that happen in make_query_response
, since we're inside of a canonical query here?
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.
(Maybe it does nothing -- just curious, since we're passing down the ObligationCtxt
from the canonical query instead of creating a trait engine inline, it might change behavior -- but maybe not!)
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.
it is necessary to constrain inference variables which we use further down when computing the implied bounds. Can you add a comment mentioning that here?
(nit: also the commits for |
Yes, I'm going to squash them all. Right now with the cellphone but will do ASAP and also what you're suggesting. |
No rush anyways, thanks 👍 |
r=me after squashing some commits and adding a comment to |
7d26f2a
to
9864a63
Compare
This is now ready! |
@bors r+ rollup |
🌲 The tree is currently closed for pull requests below priority 1. This pull request will be tested once the tree is reopened. |
Unsure what happened with this PR but I think it needs to be re-approved. @bors r=lcnr |
…lcnr Use obligation ctxt instead of dyn TraitEngine r? `@lcnr`
This needs re-bless, cc #104738 |
9864a63
to
859b147
Compare
@bors r=lcnr |
Rollup of 6 pull requests Successful merges: - rust-lang#104269 (Fix hang in where-clause suggestion with `predicate_can_apply`) - rust-lang#104286 (copy doc output files by format) - rust-lang#104509 (Use obligation ctxt instead of dyn TraitEngine) - rust-lang#104721 (Remove more `ref` patterns from the compiler) - rust-lang#104744 (rustdoc: give struct fields CSS `display: block`) - rust-lang#104751 (Fix an ICE parsing a malformed attribute.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
r? @lcnr