-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
do not prefer substs relate during coherence #111987
Conversation
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
94b1506
to
e7fa993
Compare
// | ||
// As this is incomplete, we must not do so during coherence. | ||
match (self.solver_mode(), subst_relate_response) { | ||
(SolverMode::Normal, Ok(response)) => Ok(response), |
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.
I think its unfortunate that this means that improving try_merge_responses
to not require floundering as much can break code because it could cause us to not take this path, and subst_relate_response
can have a stronger response than the merged one :(
…yUwU do not prefer substs relate during coherence r? `@compiler-errors`
…yUwU do not prefer substs relate during coherence r? ``@compiler-errors``
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#111714 (Stop confusing specification levels when computing expectations.) - rust-lang#111927 (Migrate `item_static` to Askama) - rust-lang#111954 (improve error message for calling a method on a raw pointer with an unknown pointee) - rust-lang#111973 (Update current implementation comments for `select_nth_unstable`) - rust-lang#111976 (Generate docs for bootstrap itself) - rust-lang#111977 (Make errors from `x doc` less verbose) - rust-lang#111987 (do not prefer substs relate during coherence) - rust-lang#111991 (Change ty and const error's pretty printing to be in braces) r? `@ghost` `@rustbot` modify labels: rollup
r? @compiler-errors