Skip to content

Commit 16f50b3

Browse files
Workaround for nightly regression
- rust-lang/rust#96018
1 parent b9559f5 commit 16f50b3

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
@@ -131,11 +131,12 @@ macro_rules! __ffi_export__ {(
131131
ret
132132
}}
133133

134+
$crate::paste::item! {
134135
/// Define the N-API wrapping function.
135136
#[cfg(any(
136137
$(
137138
all(),
138-
__hack = $node_js_arg_count,
139+
[< __hack_ $node_js_arg_count >] = "",
139140
)?
140141
))]
141142
const _: () = {
@@ -231,6 +232,7 @@ macro_rules! __ffi_export__ {(
231232
}
232233
}
233234
};
235+
}
234236
};
235237

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

0 commit comments

Comments
 (0)