From e40023e8e6ccd80ee986785c8017f9ac76db8c55 Mon Sep 17 00:00:00 2001 From: Rerumu <25379555+Rerumu@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:11:36 -0400 Subject: [PATCH] Add unsupported instruction message --- wasm-ast/src/factory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm-ast/src/factory.rs b/wasm-ast/src/factory.rs index 3d074b4..07fd101 100644 --- a/wasm-ast/src/factory.rs +++ b/wasm-ast/src/factory.rs @@ -614,7 +614,7 @@ impl<'a> Factory<'a> { Operator::I64Const { value } => self.target.push_constant(value), Operator::F32Const { value } => self.target.push_constant(value.bits()), Operator::F64Const { value } => self.target.push_constant(value.bits()), - _ => unimplemented!(), + _ => panic!("Unsupported instruction: {:?}", op), } }