Split -Zchalk flag into -Ztrait-solver=(classic|chalk|next) flag#106385
Split -Zchalk flag into -Ztrait-solver=(classic|chalk|next) flag#106385bors merged 3 commits intorust-lang:masterfrom
-Zchalk flag into -Ztrait-solver=(classic|chalk|next) flag#106385Conversation
|
Some changes occurred in engine.rs, potentially modifying the public API of cc @lcnr |
|
Also could probably use advice on what to call the current solver. "stock" is perhaps not the best name, but couldn't think of anything better. |
cb28d5b to
e8a256e
Compare
How about "classic", with an alias "default" that currently points to "classic" but that could be updated in future. |
|
☔ The latest upstream changes (presumably #106442) made this pull request unmergeable. Please resolve the merge conflicts. |
|
"stock" -> "legacy"? r=me either way I don't think we need an MCP. I'm not sure if -Z options require them anyways. But regardless, this is definitely a types thing and pretty clearly falls under our plans, so this shouldn't come as a surprise to anyone. |
32b7c27 to
cfacdce
Compare
|
I actually prefer "classic" to "legacy". I will probably also put up another PR which reintroduces @bors r=jackh726 |
|
📌 Commit cfacdceb9be226bf6160b4169e02b0104feb0645 has been approved by It is now in the queue for this repository. |
|
PR title should be fixed too? |
-Zchalk flag into -Ztrait-solver=(stock|chalk|next) flag-Zchalk flag into -Ztrait-solver=(classic|chalk|next) flag
cfacdce to
8b0f43b
Compare
|
@bors r=jackh726 |
…=jackh726 Split `-Zchalk` flag into `-Ztrait-solver=(classic|chalk|next)` flag We'll eventually need a way to select more than chalk + not-chalk. Does this need an MCP since it's touching a `-Z` flag? Or perhaps I should preserve `-Zchalk` for the time being... maybe I could make it a warning to use that flag? cc `@rust-lang/types` r? types
…mpiler-errors Rollup of 6 pull requests Successful merges: - rust-lang#105846 (Account for return-position `impl Trait` in trait in `opt_suggest_box_span`) - rust-lang#106385 (Split `-Zchalk` flag into `-Ztrait-solver=(classic|chalk|next)` flag) - rust-lang#106403 (Rename `hir::Map::{get_,find_}parent_node` to `hir::Map::{,opt_}parent_id`, and add `hir::Map::{get,find}_parent`) - rust-lang#106462 (rustdoc: remove unnecessary wrapper around sidebar and mobile logos) - rust-lang#106464 (Update Fuchsia walkthrough with new configs) - rust-lang#106478 (Tweak wording of fn call with wrong number of args) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
|
|
||
| ty::PredicateKind::WellFormed(ty) => { | ||
| if !self.tcx.sess.opts.unstable_opts.chalk { | ||
| if self.tcx.sess.opts.unstable_opts.trait_solver != TraitSolver::Chalk { |
There was a problem hiding this comment.
the new solver can also error for WellFormed by themselves
…ackh726 Report WF error for chalk *and* new solver addressing this nit rust-lang#106385 (comment) No test yet because new solver is currently unusable, lol r? `@lcnr`
We'll eventually need a way to select more than chalk + not-chalk.
Does this need an MCP since it's touching a
-Zflag? Or perhaps I should preserve-Zchalkfor the time being... maybe I could make it a warning to use that flag? cc @rust-lang/typesr? types