use ty::Unevaluated
instead of def substs pair
This commit is contained in:
parent
031243898e
commit
caa975c89e
19 changed files with 66 additions and 86 deletions
|
@ -134,11 +134,11 @@ where
|
|||
ty.visit_with(self)
|
||||
}
|
||||
ty::PredicateKind::RegionOutlives(..) => ControlFlow::CONTINUE,
|
||||
ty::PredicateKind::ConstEvaluatable(defs, substs)
|
||||
ty::PredicateKind::ConstEvaluatable(uv)
|
||||
if self.def_id_visitor.tcx().features().const_evaluatable_checked =>
|
||||
{
|
||||
let tcx = self.def_id_visitor.tcx();
|
||||
if let Ok(Some(ct)) = AbstractConst::new(tcx, defs, substs) {
|
||||
if let Ok(Some(ct)) = AbstractConst::new(tcx, uv) {
|
||||
self.visit_abstract_const_expr(tcx, ct)?;
|
||||
}
|
||||
ControlFlow::CONTINUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue