summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-02-11 21:36:12 +0000
committerMichael Goulet <michael@errs.io>2024-02-11 22:09:52 +0000
commitcb024ba6e386242c5bea20fcc613c7edbc48f290 (patch)
tree5dfde42fd1ba98d706b782500379a1eb355f85fb /compiler/rustc_monomorphize/src
parent899c895ba4558737d8e3235b5d864d985bf28e95 (diff)
downloadrust-cb024ba6e386242c5bea20fcc613c7edbc48f290.tar.gz
rust-cb024ba6e386242c5bea20fcc613c7edbc48f290.zip
is_closure_like
Diffstat (limited to 'compiler/rustc_monomorphize/src')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index 3376af98653..a771fa86eb7 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -1154,7 +1154,7 @@ fn create_fn_mono_item<'tcx>(
     let def_id = instance.def_id();
     if tcx.sess.opts.unstable_opts.profile_closures
         && def_id.is_local()
-        && tcx.is_closure_or_coroutine(def_id)
+        && tcx.is_closure_like(def_id)
     {
         crate::util::dump_closure_profile(tcx, instance);
     }