Revert 'Stabilize -Znext-solver=coherence'

This commit is contained in:
Michael Goulet 2024-09-11 17:57:04 -04:00
parent 5bce6d48ff
commit e866f8a97d
104 changed files with 578 additions and 392 deletions

View file

@ -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))