Skip to content

Commit

Permalink
remove duplicate subst
Browse files Browse the repository at this point in the history
  • Loading branch information
eopb committed Oct 20, 2021
1 parent 99b8c01 commit be30e60
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ 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) {
Expand Down

0 comments on commit be30e60

Please sign in to comment.