From 95d0c3c93c8064e8b7d3b74ec4a7680fada63b23 Mon Sep 17 00:00:00 2001 From: David Mak Date: Mon, 11 Dec 2023 12:11:41 +0800 Subject: [PATCH] artiq: Rename const_generic_dummy to const_generic_marker --- nac3artiq/src/lib.rs | 4 ++-- nac3artiq/src/symbol_resolver.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index 59b3a91d7..61c3ecadb 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -75,7 +75,7 @@ pub struct PrimitivePythonId { list: u64, tuple: u64, typevar: u64, - const_generic_dummy: u64, + const_generic_marker: u64, none: u64, exception: u64, generic_alias: (u64, u64), @@ -871,7 +871,7 @@ impl Nac3 { .extract() .unwrap(), typevar: get_attr_id(typing_mod, "TypeVar"), - const_generic_dummy: id_fn + const_generic_marker: id_fn .call1(( builtins_mod.getattr("globals") .and_then(|v| v.call0()) diff --git a/nac3artiq/src/symbol_resolver.rs b/nac3artiq/src/symbol_resolver.rs index bb5f6b09f..3c50d4b3b 100644 --- a/nac3artiq/src/symbol_resolver.rs +++ b/nac3artiq/src/symbol_resolver.rs @@ -353,7 +353,7 @@ impl InnerResolver { for i in 0usize.. { if let Ok(constr) = constraints.get_item(i) { let constr_id: u64 = self.helper.id_fn.call1(py, (constr,))?.extract(py)?; - if constr_id == self.primitive_ids.const_generic_dummy { + if constr_id == self.primitive_ids.const_generic_marker { is_const_generic = true; continue }