is_coroutine -> is_coroutine_or_closure
This commit is contained in:
parent
d59f06fc64
commit
07adee7072
15 changed files with 29 additions and 22 deletions
|
@ -1119,7 +1119,10 @@ fn create_fn_mono_item<'tcx>(
|
|||
source: Span,
|
||||
) -> Spanned<MonoItem<'tcx>> {
|
||||
let def_id = instance.def_id();
|
||||
if tcx.sess.opts.unstable_opts.profile_closures && def_id.is_local() && tcx.is_closure(def_id) {
|
||||
if tcx.sess.opts.unstable_opts.profile_closures
|
||||
&& def_id.is_local()
|
||||
&& tcx.is_closure_or_coroutine(def_id)
|
||||
{
|
||||
crate::util::dump_closure_profile(tcx, instance);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue