From 67ad4ea14a7b7e70cd519b8c46b40177ba7a0f32 Mon Sep 17 00:00:00 2001 From: abdul124 Date: Wed, 31 Jul 2024 17:43:37 +0800 Subject: [PATCH] libksupport: remove additional error categories --- src/libksupport/src/eh_artiq.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libksupport/src/eh_artiq.rs b/src/libksupport/src/eh_artiq.rs index 69e8e80..6f159ac 100644 --- a/src/libksupport/src/eh_artiq.rs +++ b/src/libksupport/src/eh_artiq.rs @@ -422,7 +422,7 @@ extern "C" fn stop_fn( } // Must be kept in sync with preallocate_runtime_exception_names() in artiq/language/embedding_map.py -static EXCEPTION_ID_LOOKUP: [(&str, u32); 14] = [ +static EXCEPTION_ID_LOOKUP: [(&str, u32); 12] = [ ("RuntimeError", 0), ("RTIOUnderflow", 1), ("RTIOOverflow", 2), @@ -435,8 +435,6 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 14] = [ ("IndexError", 9), ("UnwrapNoneError", 10), ("SubkernelError", 11), - ("ValueError", 12), - ("LinAlgError", 13), ]; pub fn get_exception_id(name: &str) -> u32 {