Skip to content

Commit

Permalink
Release Wasmtime 0.37.0 (#4169)
Browse files Browse the repository at this point in the history
* Release Wasmtime 0.37.0

[automatically-tag-and-release-this-commit]

* Fix CI for Rust 1.61.0 (#4164)

A new version of rustc was released this morning and we have a few small
breakages on our CI which need fixing:

* A new warning was coming out of the c-api crate about an unneeded
  `unsafe` block.
* The panic message of a task in `cranelift-object` needed updating
  since the standard library changed how it formats strings with the nul
  byte.

* Undo accidental spec testsuite update

Need to fix the publish script to prevent this from happening again.

Co-authored-by: Wasmtime Publish <wasmtime-publish@users.noreply.github.com>
Co-authored-by: Alex Crichton <alex@alexcrichton.com>
  • Loading branch information
3 people committed May 20, 2022
1 parent 431057b commit e54c805
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 0.37.0

Unreleased.
Released 2022-05-20.

### Added

Expand Down
4 changes: 2 additions & 2 deletions cranelift/object/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ fn libcall_function() {

#[test]
#[should_panic(
expected = "Result::unwrap()` on an `Err` value: Backend(Symbol \"function\\u{0}with\\u{0}nul\\u{0}bytes\" has a null byte, which is disallowed"
expected = "Result::unwrap()` on an `Err` value: Backend(Symbol \"function\\0with\\0nul\\0bytes\" has a null byte, which is disallowed"
)]
fn reject_nul_byte_symbol_for_func() {
let flag_builder = settings::builder();
Expand All @@ -224,7 +224,7 @@ fn reject_nul_byte_symbol_for_func() {

#[test]
#[should_panic(
expected = "Result::unwrap()` on an `Err` value: Backend(Symbol \"data\\u{0}with\\u{0}nul\\u{0}bytes\" has a null byte, which is disallowed"
expected = "Result::unwrap()` on an `Err` value: Backend(Symbol \"data\\0with\\0nul\\0bytes\" has a null byte, which is disallowed"
)]
fn reject_nul_byte_symbol_for_data() {
let flag_builder = settings::builder();
Expand Down
2 changes: 1 addition & 1 deletion crates/c-api/src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ pub(crate) unsafe fn c_callback_to_rust_fn(

// Translate the `wasmtime_val_t` results into the `results` space
for (i, result) in out_results.iter().enumerate() {
results[i] = unsafe { result.to_val() };
results[i] = result.to_val();
}

// Move our `vals` storage back into the store now that we no longer
Expand Down

0 comments on commit e54c805

Please sign in to comment.