From 9059145587fee877c782d6869f0e3829b22d5669 Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Mon, 4 Nov 2024 11:04:14 +0100 Subject: [PATCH] fix or silence wasmi_wast warnings --- crates/wast/src/lib.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/wast/src/lib.rs b/crates/wast/src/lib.rs index 1c590a0f00..2a05333951 100644 --- a/crates/wast/src/lib.rs +++ b/crates/wast/src/lib.rs @@ -363,10 +363,11 @@ impl WastRunner { /// Asserts that `result` match the `expected` value. fn assert_result(&self, result: &Val, expected: &WastRet) -> Result<()> { + #[allow(unreachable_patterns)] // TODO: remove once `wast v220` is used let expected = match expected { WastRet::Core(arg) => arg, - WastRet::Component(arg) => { - bail!("encountered unsupported component-model result: {arg:?}") + _ => { + bail!("encountered unsupported Wast result: {expected:?}") } }; let is_equal = match (result, expected) { @@ -529,10 +530,11 @@ impl WastRunner { fn fill_params(&mut self, args: &[WastArg]) -> Result<()> { self.params.clear(); for arg in args { + #[allow(unreachable_patterns)] // TODO: remove once `wast v220` is used let arg = match arg { WastArg::Core(arg) => arg, - WastArg::Component(arg) => { - bail!("encountered unsupported component-model argument: {arg:?}") + _ => { + bail!("encountered unsupported Wast argument: {arg:?}") } }; let Some(val) = self.value(arg) else {