artiq: Rename const_generic_dummy to const_generic_marker

pull/363/head
David Mak 2023-12-11 12:11:41 +08:00
parent bd3d67f3d6
commit 95d0c3c93c
2 changed files with 3 additions and 3 deletions

View File

@ -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())

View File

@ -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
}