From e43afef7dd47763f55a18cff4bdbf1fd4ca4e201 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 24 Dec 2022 05:01:45 +0000 Subject: [PATCH] Ignore async functions as mapping them would be substantial work --- c-bindings-gen/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index 903ebfc..f5a7656 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -1360,6 +1360,7 @@ fn writeln_impl(w: &mut W, w_uses: &mut HashSet continue, ExportStatus::NotImplementable => panic!("(C-not implementable) must only appear on traits"), } + if m.sig.asyncness.is_some() { continue; } let mut meth_gen_types = gen_types.push_ctx(); assert!(meth_gen_types.learn_generics(&m.sig.generics, types)); if m.defaultness.is_some() { unimplemented!(); } -- 2.39.5