about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-04 23:18:28 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-06-30 21:45:29 +0200
commit0161ecd13f31d3521791d419522bab55eabfa717 (patch)
tree1667cdb010a1646d09e56671a36a7aa1d72a8c8b /compiler/rustc_codegen_cranelift/src
parent2e45cd4b69bec951dda2120c070a38406d97ea1f (diff)
downloadrust-0161ecd13f31d3521791d419522bab55eabfa717.tar.gz
rust-0161ecd13f31d3521791d419522bab55eabfa717.zip
Recover when failing to normalize closure signature.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
-rw-r--r--compiler/rustc_codegen_cranelift/src/base.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs
index fbe830b2b10..fa4ea426385 100644
--- a/compiler/rustc_codegen_cranelift/src/base.rs
+++ b/compiler/rustc_codegen_cranelift/src/base.rs
@@ -686,6 +686,7 @@ fn codegen_stmt<'tcx>(
                                 substs,
                                 ty::ClosureKind::FnOnce,
                             )
+                            .expect("failed to normalize and resolve closure during codegen")
                             .polymorphize(fx.tcx);
                             let func_ref = fx.get_function_ref(instance);
                             let func_addr = fx.bcx.ins().func_addr(fx.pointer_type, func_ref);