Normalize anon consts in new solver
This commit is contained in:
parent
4fbb43e70f
commit
2c1473ca70
7 changed files with 115 additions and 42 deletions
|
@ -227,7 +227,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
return self.unify_const_variable(vid, a, relation.param_env());
|
||||
}
|
||||
(ty::ConstKind::Unevaluated(..), _) | (_, ty::ConstKind::Unevaluated(..))
|
||||
if self.tcx.features().generic_const_exprs =>
|
||||
if self.tcx.features().generic_const_exprs || self.tcx.trait_solver_next() =>
|
||||
{
|
||||
relation.register_const_equate_obligation(a, b);
|
||||
return Ok(b);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue