Skip to content

Commit

Permalink
Fix MSRV compilation (rustwasm#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed May 21, 2024
1 parent d48af8e commit 852ea7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
* Fix `catch` not being thread-safe.
[#3879](https://github.com/rustwasm/wasm-bindgen/pull/3879)

* Fix MSRV compilation.
[#3927](https://github.com/rustwasm/wasm-bindgen/pull/3927)

--------------------------------------------------------------------------------

## [0.2.92](https://github.com/rustwasm/wasm-bindgen/compare/0.2.91...0.2.92)
Expand Down
6 changes: 3 additions & 3 deletions crates/backend/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1658,9 +1658,9 @@ fn splat(
let mut args = Vec::new();
let mut names = Vec::new();

for n in 1..=4 {
let arg_name = format_ident!("{name}_{n}");
let prim_name = format_ident!("Prim{n}");
for n in 1_u32..=4 {
let arg_name = format_ident!("{}_{}", name, n);
let prim_name = format_ident!("Prim{}", n);
args.push(quote! {
#arg_name: <#abi as #wasm_bindgen::convert::WasmAbi>::#prim_name
});
Expand Down

0 comments on commit 852ea7c

Please sign in to comment.