1
Fork 0

Add line that was unintentionally removed

This commit is contained in:
Ethan Brierley 2021-09-04 23:13:15 +01:00
parent fc5633fed6
commit b7d99983f8

View file

@ -91,6 +91,7 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
ControlFlow::CONTINUE
}
Node::Cast(_, _, ty) => {
let ty = ty.subst(tcx, ct.substs);
if ty.has_infer_types_or_consts() {
failure_kind = FailureKind::MentionsInfer;
} else if ty.definitely_has_param_types_or_consts(tcx) {