about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-01-19 20:04:14 +0000
committerMichael Goulet <michael@errs.io>2024-01-22 16:50:30 +0000
commitf700ee4e709abb2243acd0fb8b9928160896c2bd (patch)
treed06c504a8d2be6182384b2bc0f0cd8d9ed57bccf /compiler/rustc_monomorphize
parent30662530506ed29ea29191798cb2ab8aa1249023 (diff)
downloadrust-f700ee4e709abb2243acd0fb8b9928160896c2bd.tar.gz
rust-f700ee4e709abb2243acd0fb8b9928160896c2bd.zip
Do not normalize closure signature when building FnOnce shim
Diffstat (limited to 'compiler/rustc_monomorphize')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index 20e70f87b75..1dbb8c4f424 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -783,8 +783,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
                             def_id,
                             args,
                             ty::ClosureKind::FnOnce,
-                        )
-                        .expect("failed to normalize and resolve closure during codegen");
+                        );
                         if should_codegen_locally(self.tcx, &instance) {
                             self.output.push(create_fn_mono_item(self.tcx, instance, span));
                         }