-
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
new solver: implement canonicalization and region constraints #107981
Conversation
cb379bf
to
65321dc
Compare
☔ The latest upstream changes (presumably #107924) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
just a couple of comments, haven't even read the big files yet so they might be out of context
@@ -0,0 +1,384 @@ | |||
use std::cmp::Ordering; |
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.
Noting from our discussion that this probably will need to live in infer after all.
@@ -148,10 +148,9 @@ impl<'tcx> EvalCtxt<'_, 'tcx> { | |||
.infcx | |||
.eq(goal.param_env, goal.predicate.term, normalized_alias.into()) | |||
.expect("failed to unify with unconstrained term"); | |||
let rhs_certainty = | |||
self.evaluate_all(nested_goals).expect("failed to unify with unconstrained term"); | |||
assert!(nested_goals.is_empty(), "{nested_goals:?}"); |
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.
Hm, yeah.
8897939
to
c583792
Compare
This comment has been minimized.
This comment has been minimized.
c583792
to
6abc7ed
Compare
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
6abc7ed
to
e15cb51
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 with nit
@bors r+ rollup |
📌 Commit d2bbb1b36e0f00525c5a59ac8a36ba01ac9e3f0d has been approved by It is now in the queue for this repository. |
wrong approver @bors r- r+ |
📌 Commit d2bbb1b36e0f00525c5a59ac8a36ba01ac9e3f0d has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #108339) made this pull request unmergeable. Please resolve the merge conflicts. |
d2bbb1b
to
a15abea
Compare
@bors r=compiler-errors rollup |
🌲 The tree is currently closed for pull requests below priority 100. This pull request will be tested once the tree is reopened. |
…ler-errors new solver: implement canonicalization and region constraints see the corresponding rustc-dev-guide chapter: https://rustc-dev-guide.rust-lang.org/solve/canonicalization.html r? `@compiler-errors`
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#107981 (new solver: implement canonicalization and region constraints) - rust-lang#108553 (Deny capturing late-bound non-lifetime param in anon const) - rust-lang#108599 (Remove legacy PM leftovers) - rust-lang#108667 (Fix another ICE in `point_at_expr_source_of_inferred_type`) - rust-lang#108674 (Clippy Fix array-size-threshold config deserialization error) - rust-lang#108685 (Match unmatched backticks in compiler/) - rust-lang#108694 (Match unmatched backticks in compiler/ comments) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
see the corresponding rustc-dev-guide chapter: https://rustc-dev-guide.rust-lang.org/solve/canonicalization.html
r? @compiler-errors