bump varid for closure var (List.map4 used so many variables that they interfered

This commit is contained in:
Folkert 2021-11-01 10:34:34 +01:00
parent 0f8047cbf0
commit 7cd5d41b35

View file

@ -64,7 +64,7 @@ const TVAR1: VarId = VarId::from_u32(1);
const TVAR2: VarId = VarId::from_u32(2); const TVAR2: VarId = VarId::from_u32(2);
const TVAR3: VarId = VarId::from_u32(3); const TVAR3: VarId = VarId::from_u32(3);
const TVAR4: VarId = VarId::from_u32(4); const TVAR4: VarId = VarId::from_u32(4);
const TOP_LEVEL_CLOSURE_VAR: VarId = VarId::from_u32(5); const TOP_LEVEL_CLOSURE_VAR: VarId = VarId::from_u32(10);
pub fn types() -> MutMap<Symbol, (SolvedType, Region)> { pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
let mut types = HashMap::with_capacity_and_hasher(NUM_BUILTIN_IMPORTS, default_hasher()); let mut types = HashMap::with_capacity_and_hasher(NUM_BUILTIN_IMPORTS, default_hasher());