Reduce unused imports
This commit is contained in:
parent
016d8fc900
commit
1493d12a22
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
#![cfg(test)]
|
||||
|
||||
#[macro_use]
|
||||
use super::*;
|
||||
use crate::util::quick_ast;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user