Skip to content

Commit be30e60

Browse files
committed
remove duplicate subst
1 parent 99b8c01 commit be30e60

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_trait_selection/src/traits/const_evaluatable.rs

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

0 commit comments

Comments
 (0)