From 746d4fd10663ce612b12b4727dfe331a348c5cce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Sun, 20 Jul 2025 23:04:01 +0200 Subject: [PATCH] make atom!() with a new value less annoying --- build/static_string_indexing.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build/static_string_indexing.rs b/build/static_string_indexing.rs index a577a517..7309f1cf 100644 --- a/build/static_string_indexing.rs +++ b/build/static_string_indexing.rs @@ -194,6 +194,7 @@ pub fn index_static_strings(instruction_rs_path: &std::path::Path) -> TokenStrea macro_rules! atom { #((#static_str_keys) => { Atom { index: #indices } };)* + ($name:literal) => {compile_error!(concat!("unknown static atom ", $name))}; } pub static STATIC_ATOMS_MAP: phf::Map<&'static str, Atom> = phf::phf_map! { -- 2.54.0