Revert 'Stabilize -Znext-solver=coherence'
This commit is contained in:
parent
5bce6d48ff
commit
e866f8a97d
104 changed files with 578 additions and 392 deletions
|
@ -35,8 +35,10 @@ where
|
|||
if infcx.next_trait_solver() {
|
||||
Box::new(NextFulfillmentCtxt::new(infcx))
|
||||
} else {
|
||||
let new_solver_globally =
|
||||
infcx.tcx.sess.opts.unstable_opts.next_solver.map_or(false, |c| c.globally);
|
||||
assert!(
|
||||
!infcx.tcx.next_trait_solver_globally(),
|
||||
!new_solver_globally,
|
||||
"using old solver even though new solver is enabled globally"
|
||||
);
|
||||
Box::new(FulfillmentContext::new(infcx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue