From 25ac811aacf8b79e80536a098408aa6e2baaa257 Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Wed, 20 Apr 2022 13:39:50 +0200 Subject: [PATCH] Workaround for nightly regression - https://github.com/rust-lang/rust/issues/96018 --- src/ffi_export.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ffi_export.rs b/src/ffi_export.rs index 804a7450c7..642a143e07 100644 --- a/src/ffi_export.rs +++ b/src/ffi_export.rs @@ -161,11 +161,12 @@ macro_rules! __ffi_export__ { ret }} + $crate::paste::item! { /// Define the N-API wrapping function. #[cfg(any( $( all(), - __hack = $node_js_arg_count, + [< __hack_ $node_js_arg_count >] = "", )? ))] const _: () = { @@ -261,6 +262,7 @@ macro_rules! __ffi_export__ { } } }; + } }; #[cfg(not(target_arch = "wasm32"))]