remove duplicate subst
This commit is contained in:
parent
99b8c016ce
commit
be30e60296
1 changed files with 0 additions and 1 deletions
|
@ -91,7 +91,6 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
|
||||||
ControlFlow::CONTINUE
|
ControlFlow::CONTINUE
|
||||||
}
|
}
|
||||||
Node::Cast(_, _, ty) => {
|
Node::Cast(_, _, ty) => {
|
||||||
let ty = ty.subst(tcx, ct.substs);
|
|
||||||
if ty.has_infer_types_or_consts() {
|
if ty.has_infer_types_or_consts() {
|
||||||
failure_kind = FailureKind::MentionsInfer;
|
failure_kind = FailureKind::MentionsInfer;
|
||||||
} else if ty.definitely_has_param_types_or_consts(tcx) {
|
} else if ty.definitely_has_param_types_or_consts(tcx) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue