Skip to content

Commit 25ac811

Browse files
Workaround for nightly regression
- rust-lang/rust#96018
1 parent c76d440 commit 25ac811

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ffi_export.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,12 @@ macro_rules! __ffi_export__ {
161161
ret
162162
}}
163163

164+
$crate::paste::item! {
164165
/// Define the N-API wrapping function.
165166
#[cfg(any(
166167
$(
167168
all(),
168-
__hack = $node_js_arg_count,
169+
[< __hack_ $node_js_arg_count >] = "",
169170
)?
170171
))]
171172
const _: () = {
@@ -261,6 +262,7 @@ macro_rules! __ffi_export__ {
261262
}
262263
}
263264
};
265+
}
264266
};
265267

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

0 commit comments

Comments
 (0)