From 9a88d5f011e23344c41b77d368c04a6f1d66a2bc Mon Sep 17 00:00:00 2001 From: Mees Delzenne Date: Mon, 12 Feb 2024 12:16:38 +0100 Subject: [PATCH] Bugfix: Fix builtin error pointing to the wrong part (#3467) --- core/src/syn/v1/builtin.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/syn/v1/builtin.rs b/core/src/syn/v1/builtin.rs index 4a1b479d..b34c6b2a 100644 --- a/core/src/syn/v1/builtin.rs +++ b/core/src/syn/v1/builtin.rs @@ -85,8 +85,10 @@ macro_rules! impl_builtins { )* $( - if let Ok((i, x)) = $name($i){ - return Ok((i,x)) + match $name($i){ + Ok((i,x)) => return Ok((i,x)), + Err(Err::Failure(x)) => return Err(Err::Failure(x)), + _ => {} } )* ($i,())