about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorEthan Brierley <ethanboxx@gmail.com>2021-09-04 23:13:15 +0100
committerEthan Brierley <ethanboxx@gmail.com>2021-09-04 23:13:15 +0100
commitb7d99983f879696522a5c770241a2fb171071eab (patch)
tree0157210241bd8d9f7376c37bb263bb33e1ca3098 /compiler
parentfc5633fed6905b1dbf307cbce795e2545817e023 (diff)
downloadrust-b7d99983f879696522a5c770241a2fb171071eab.tar.gz
rust-b7d99983f879696522a5c770241a2fb171071eab.zip
Add line that was unintentionally removed
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_trait_selection/src/traits/const_evaluatable.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs b/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs
index 1adcda41102..4acde1b2165 100644
--- a/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs
+++ b/compiler/rustc_trait_selection/src/traits/const_evaluatable.rs
@@ -91,6 +91,7 @@ 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) {