From 0691e48ed8711799a5314c8d65805fa6e76bc5ea Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Wed, 27 Mar 2024 22:39:17 -0700 Subject: [PATCH] Do not attempt cprop on vector ops that are not implemented. --- src/interp.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/interp.rs b/src/interp.rs index b6657e1..d92f9f1 100644 --- a/src/interp.rs +++ b/src/interp.rs @@ -1172,11 +1172,7 @@ pub fn const_eval( Some(ConstVal::None) }), (_, args) if args.iter().any(|&arg| arg == ConstVal::None) => None, - (op, args) => unimplemented!( - "Undefined operator or arg combination: {:?}, {:?}", - op, - args - ), + _ => None, } }