forked from M-Labs/nac3
artiq: Rename const_generic_dummy to const_generic_marker
This commit is contained in:
parent
bd3d67f3d6
commit
95d0c3c93c
@ -75,7 +75,7 @@ pub struct PrimitivePythonId {
|
|||||||
list: u64,
|
list: u64,
|
||||||
tuple: u64,
|
tuple: u64,
|
||||||
typevar: u64,
|
typevar: u64,
|
||||||
const_generic_dummy: u64,
|
const_generic_marker: u64,
|
||||||
none: u64,
|
none: u64,
|
||||||
exception: u64,
|
exception: u64,
|
||||||
generic_alias: (u64, u64),
|
generic_alias: (u64, u64),
|
||||||
@ -871,7 +871,7 @@ impl Nac3 {
|
|||||||
.extract()
|
.extract()
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
typevar: get_attr_id(typing_mod, "TypeVar"),
|
typevar: get_attr_id(typing_mod, "TypeVar"),
|
||||||
const_generic_dummy: id_fn
|
const_generic_marker: id_fn
|
||||||
.call1((
|
.call1((
|
||||||
builtins_mod.getattr("globals")
|
builtins_mod.getattr("globals")
|
||||||
.and_then(|v| v.call0())
|
.and_then(|v| v.call0())
|
||||||
|
@ -353,7 +353,7 @@ impl InnerResolver {
|
|||||||
for i in 0usize.. {
|
for i in 0usize.. {
|
||||||
if let Ok(constr) = constraints.get_item(i) {
|
if let Ok(constr) = constraints.get_item(i) {
|
||||||
let constr_id: u64 = self.helper.id_fn.call1(py, (constr,))?.extract(py)?;
|
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;
|
is_const_generic = true;
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user