1
Fork 0

stabilize -Znext-solver=coherence

This commit is contained in:
lcnr 2024-03-01 12:33:42 +01:00
parent 009e73825a
commit 1a893ac648
64 changed files with 326 additions and 318 deletions

View file

@ -35,10 +35,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))