Fix ABI for FnMut/Fn impls for async closures
This commit is contained in:
parent
05116c5c30
commit
f1fef64e19
12 changed files with 81 additions and 18 deletions
|
@ -282,6 +282,7 @@ fn resolve_associated_item<'tcx>(
|
|||
Some(Instance {
|
||||
def: ty::InstanceDef::ConstructCoroutineInClosureShim {
|
||||
coroutine_closure_def_id,
|
||||
receiver_by_ref: target_kind != ty::ClosureKind::FnOnce,
|
||||
},
|
||||
args,
|
||||
})
|
||||
|
@ -304,6 +305,7 @@ fn resolve_associated_item<'tcx>(
|
|||
Some(Instance {
|
||||
def: ty::InstanceDef::ConstructCoroutineInClosureShim {
|
||||
coroutine_closure_def_id,
|
||||
receiver_by_ref: false,
|
||||
},
|
||||
args,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue