mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
remove duplicate subst
This commit is contained in:
parent
99b8c016ce
commit
be30e60296
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user