Skip to content

Commit b7d9998

Browse files
committed
Add line that was unintentionally removed
1 parent fc5633f commit b7d9998

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_trait_selection/src/traits/const_evaluatable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
9191
ControlFlow::CONTINUE
9292
}
9393
Node::Cast(_, _, ty) => {
94+
let ty = ty.subst(tcx, ct.substs);
9495
if ty.has_infer_types_or_consts() {
9596
failure_kind = FailureKind::MentionsInfer;
9697
} else if ty.definitely_has_param_types_or_consts(tcx) {

0 commit comments

Comments
 (0)