stabilize -Znext-solver=coherence

This commit is contained in:
lcnr 2024-09-21 07:02:51 +00:00
parent 88f311479d
commit 1a9d2d82a5
68 changed files with 347 additions and 329 deletions

View file

@ -36,10 +36,8 @@ 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!(
!new_solver_globally,
!infcx.tcx.next_trait_solver_globally(),
"using old solver even though new solver is enabled globally"
);
Box::new(FulfillmentContext::new(infcx))