Fix some unused names

This commit is contained in:
Greg Shuflin 2021-12-16 14:29:01 -08:00
parent 4c99be700f
commit c1b5fa392a
3 changed files with 3 additions and 3 deletions

View File

@ -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 }

View File

@ -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!("<impl-block>{}", type_name)));
scope_stack.push(new_scope);

View File

@ -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() {