Skip to content

Commit 2af6340

Browse files
Workaround for nightly regression
- rust-lang/rust#96018
1 parent c37f20b commit 2af6340

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ffi_export.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,12 @@ macro_rules! __ffi_export__ {
159159
ret
160160
}}
161161

162+
$crate::paste::item! {
162163
/// Define the N-API wrapping function.
163164
#[cfg(any(
164165
$(
165166
all(),
166-
__hack = $node_js_arg_count,
167+
[< __hack_ $node_js_arg_count >] = "",
167168
)?
168169
))]
169170
const _: () = {
@@ -259,6 +260,7 @@ macro_rules! __ffi_export__ {
259260
}
260261
}
261262
};
263+
}
262264
};
263265

264266
#[cfg(not(target_arch = "wasm32"))]

0 commit comments

Comments
 (0)