remove var_store argument

This commit is contained in:
Folkert 2022-04-28 22:30:27 +02:00
parent 572bd66fb7
commit f17cf9d02b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ pub fn canonicalize_module_defs<'a>(
var_store: &mut VarStore,
) -> Result<ModuleOutput, RuntimeError> {
let mut can_exposed_imports = MutMap::default();
let mut scope = Scope::new(home, var_store, exposed_ident_ids);
let mut scope = Scope::new(home, exposed_ident_ids);
let mut env = Env::new(home, dep_idents, module_ids);
let num_deps = dep_idents.len();

View file

@ -70,7 +70,7 @@ fn add_aliases(var_store: &mut VarStore) -> SendMap<Symbol, Alias> {
}
impl Scope {
pub fn new(home: ModuleId, _var_store: &mut VarStore, initial_ident_ids: IdentIds) -> Scope {
pub fn new(home: ModuleId, initial_ident_ids: IdentIds) -> Scope {
Scope {
home,
exposed_ident_count: initial_ident_ids.len(),

View file

@ -55,7 +55,7 @@ pub fn can_expr_with(arena: &Bump, home: ModuleId, expr_str: &str) -> CanExprOut
// rules multiple times unnecessarily.
let loc_expr = operator::desugar_expr(arena, &loc_expr);
let mut scope = Scope::new(home, &mut var_store, IdentIds::default());
let mut scope = Scope::new(home, IdentIds::default());
scope.add_alias(
Symbol::NUM_INT,
Region::zero(),