This commit is contained in:
Folkert 2022-04-30 00:57:21 +02:00
parent 8fe3e24c8b
commit 953369e0d8
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 5 additions and 12 deletions

View file

@ -1,4 +1,4 @@
use roc_collections::{MutSet, SmallStringInterner, VecMap};
use roc_collections::{MutSet, VecMap};
use roc_module::ident::{Ident, Lowercase};
use roc_module::symbol::{IdentId, IdentIds, ModuleId, Symbol};
use roc_problem::can::RuntimeError;
@ -305,8 +305,6 @@ impl Scope {
) -> Result<(Symbol, Option<Symbol>), (Region, Loc<Ident>, Symbol)> {
match self.locals.has_in_scope(&ident) {
Some((ident_id, original_region)) => {
let index = ident_id.index();
let original_symbol = Symbol::new(self.home, ident_id);
let shadow_symbol = self.locals.scopeless_symbol(&ident, region);
@ -360,7 +358,7 @@ impl Scope {
///
/// Used for record guards like { x: Just _ }
pub fn ignore(&mut self, ident: &Ident) -> Symbol {
self.locals.scopeless_symbol(&ident, Region::zero())
self.locals.scopeless_symbol(ident, Region::zero())
}
/// Import a Symbol from another module into this module's top-level scope.