is_coroutine -> is_coroutine_or_closure
This commit is contained in:
@@ -481,7 +481,7 @@ pub fn from_fn_attrs<'ll, 'tcx>(
|
||||
// `+multivalue` feature because the purpose of the wasm abi is to match
|
||||
// the WebAssembly specification, which has this feature. This won't be
|
||||
// needed when LLVM enables this `multivalue` feature by default.
|
||||
if !cx.tcx.is_closure(instance.def_id()) {
|
||||
if !cx.tcx.is_closure_or_coroutine(instance.def_id()) {
|
||||
let abi = cx.tcx.fn_sig(instance.def_id()).skip_binder().abi();
|
||||
if abi == Abi::Wasm {
|
||||
function_features.push("+multivalue".to_string());
|
||||
|
||||
Reference in New Issue
Block a user