wasmtime-wast: bump wast dependency to 22.0.0

This commit is contained in:
Pat Hickey
2020-08-17 15:17:39 -07:00
parent 19e2a46aaf
commit a8ecb451f1
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ edition = "2018"
[dependencies] [dependencies]
anyhow = "1.0.19" anyhow = "1.0.19"
wasmtime = { path = "../wasmtime", version = "0.19.0", default-features = false } wasmtime = { path = "../wasmtime", version = "0.19.0", default-features = false }
wast = "21.0.0" wast = "22.0.0"
[badges] [badges]
maintenance = { status = "actively-developed" } maintenance = { status = "actively-developed" }

View File

@@ -409,7 +409,7 @@ fn val_matches(actual: &Val, expected: &wast::AssertExpression) -> Result<bool>
(Val::F32(a), wast::AssertExpression::F32(b)) => f32_matches(*a, b), (Val::F32(a), wast::AssertExpression::F32(b)) => f32_matches(*a, b),
(Val::F64(a), wast::AssertExpression::F64(b)) => f64_matches(*a, b), (Val::F64(a), wast::AssertExpression::F64(b)) => f64_matches(*a, b),
(Val::V128(a), wast::AssertExpression::V128(b)) => v128_matches(*a, b), (Val::V128(a), wast::AssertExpression::V128(b)) => v128_matches(*a, b),
(Val::ExternRef(x), wast::AssertExpression::RefNull(HeapType::Extern)) => x.is_none(), (Val::ExternRef(x), wast::AssertExpression::RefNull(Some(HeapType::Extern))) => x.is_none(),
(Val::ExternRef(x), wast::AssertExpression::RefExtern(y)) => { (Val::ExternRef(x), wast::AssertExpression::RefExtern(y)) => {
if let Some(x) = x { if let Some(x) = x {
let x = x let x = x
@@ -421,7 +421,7 @@ fn val_matches(actual: &Val, expected: &wast::AssertExpression) -> Result<bool>
false false
} }
} }
(Val::FuncRef(x), wast::AssertExpression::RefNull(HeapType::Func)) => x.is_none(), (Val::FuncRef(x), wast::AssertExpression::RefNull(_)) => x.is_none(),
_ => bail!( _ => bail!(
"don't know how to compare {:?} and {:?} yet", "don't know how to compare {:?} and {:?} yet",
actual, actual,