Reduce unused imports

This commit is contained in:
greg 2019-10-21 03:02:11 -07:00
parent 016d8fc900
commit 1493d12a22
5 changed files with 3 additions and 6 deletions

View File

@ -8,7 +8,7 @@ use itertools::Itertools;
use crate::util::ScopeStack;
use crate::reduced_ast::{BoundVars, ReducedAST, Stmt, Expr, Lit, Func, Alternative, Subpattern};
use crate::symbol_table::{SymbolSpec, Symbol, SymbolTable, ScopeSegment, FullyQualifiedSymbolName};
use crate::symbol_table::{SymbolSpec, Symbol, SymbolTable, FullyQualifiedSymbolName};
use crate::builtin::Builtin;
mod test;

View File

@ -5,7 +5,6 @@ use crate::ast::*;
use crate::util::ScopeStack;
type FQSNPrefix = Vec<ScopeSegment>;
type NameScopeStack<'t> = ScopeStack<'t, Rc<String>, FQSNPrefix>;
pub struct ScopeResolver<'a> {
symbol_table: &'a mut SymbolTable,

View File

@ -15,7 +15,7 @@ macro_rules! fqsn {
{
let mut vec = vec![];
$(
vec.push(ScopeSegment::new(Rc::new($name.to_string())));
vec.push(crate::symbol_table::ScopeSegment::new(std::rc::Rc::new($name.to_string())));
)*
FullyQualifiedSymbolName(vec)
}

View File

@ -1,6 +1,5 @@
use std::rc::Rc;
use radix_trie::{Trie, TrieCommon, TrieKey};
use super::{ScopeSegment, FullyQualifiedSymbolName};
use super::FullyQualifiedSymbolName;
use std::hash::{Hasher, Hash};
use std::collections::hash_map::DefaultHasher;

View File

@ -1,6 +1,5 @@
#![cfg(test)]
#[macro_use]
use super::*;
use crate::util::quick_ast;