From c1b5fa392a45a35e344169bcbf890afd60e1e648 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 16 Dec 2021 14:29:01 -0800 Subject: [PATCH] Fix some unused names --- schala-lang/src/reduced_ir/mod.rs | 2 +- schala-lang/src/symbol_table/populator.rs | 2 +- schala-lang/src/symbol_table/resolver.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schala-lang/src/reduced_ir/mod.rs b/schala-lang/src/reduced_ir/mod.rs index 2e7e3db..ededbd5 100644 --- a/schala-lang/src/reduced_ir/mod.rs +++ b/schala-lang/src/reduced_ir/mod.rs @@ -142,7 +142,7 @@ impl<'a, 'b> Reducer<'a, 'b> { let args = arguments.iter().map(|arg| self.invocation_argument(arg)).collect(); //TODO need to have full type availability at this point to do this method lookup //correctly - if let Expression::Access { name, expr } = f { + if let Expression::Access { name: _, expr } = f { let def_id = unimplemented!(); let method = Expression::Lookup(Lookup::Function(def_id)); Expression::CallMethod { f: Box::new(method), args, self_expr: expr } diff --git a/schala-lang/src/symbol_table/populator.rs b/schala-lang/src/symbol_table/populator.rs index 562bdf4..15ebdaf 100644 --- a/schala-lang/src/symbol_table/populator.rs +++ b/schala-lang/src/symbol_table/populator.rs @@ -76,7 +76,7 @@ impl<'a> SymbolTablePopulator<'a> { self.add_type_members(name, body, mutable, location, type_fqsn) } - Declaration::Impl { type_name, interface_name, block } => { + Declaration::Impl { type_name, interface_name: _, block } => { let mut errors = vec![]; let new_scope = ScopeSegment::Name(Rc::new(format!("{}", type_name))); scope_stack.push(new_scope); diff --git a/schala-lang/src/symbol_table/resolver.rs b/schala-lang/src/symbol_table/resolver.rs index 5529bd9..fc82842 100644 --- a/schala-lang/src/symbol_table/resolver.rs +++ b/schala-lang/src/symbol_table/resolver.rs @@ -167,7 +167,7 @@ impl<'a> ASTVisitor for ScopeResolver<'a> { Recursion::Continue } Declaration::Impl { block, .. } => { - let mut new_scope = ScopeStack::new(Some(ScopeType::ImplBlock)); + let new_scope = ScopeStack::new(Some(ScopeType::ImplBlock)); let mut new_resolver = ScopeResolver { symbol_table: self.symbol_table, lexical_scopes: new_scope }; for stmt in block.iter() {