From e8d77fca3ef73d927e094c37cd9bb2e16bf8fc2c Mon Sep 17 00:00:00 2001 From: abdul124 Date: Fri, 23 Aug 2024 16:50:47 +0800 Subject: [PATCH] firmware: add UnwrapNoneError exception --- src/libksupport/src/eh_artiq.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libksupport/src/eh_artiq.rs b/src/libksupport/src/eh_artiq.rs index f8f86efb..ea33b7e0 100644 --- a/src/libksupport/src/eh_artiq.rs +++ b/src/libksupport/src/eh_artiq.rs @@ -476,7 +476,7 @@ extern "C" fn stop_fn( } // Must be kept in sync with preallocate_runtime_exception_names() in `artiq.compiler.embedding` -static EXCEPTION_ID_LOOKUP: [(&str, u32); 21] = [ +static EXCEPTION_ID_LOOKUP: [(&str, u32); 22] = [ ("RTIOUnderflow", 0), ("RTIOOverflow", 1), ("RTIODestinationUnreachable", 2), @@ -498,6 +498,7 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 21] = [ ("ValueError", 18), ("ZeroDivisionError", 19), ("LinAlgError", 20), + ("UnwrapNoneError", 21) ]; pub fn get_exception_id(name: &str) -> u32 {