Fix warnings
This commit is contained in:
parent
29996c4a30
commit
d1a37058df
@ -1,7 +1,7 @@
|
||||
//! This module contains simply [`Builder`] and it's related utility Values.
|
||||
//! Builder is the actual struct being modified when building the LLIR.
|
||||
|
||||
use std::{cell::RefCell, collections::HashMap, rc::Rc};
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
|
||||
use crate::{
|
||||
BlockData, ConstValue, CustomTypeKind, FunctionData, Instr, InstructionData, ModuleData,
|
||||
|
@ -5,7 +5,7 @@ use std::{
|
||||
marker::PhantomData,
|
||||
};
|
||||
|
||||
use crate::{CmpPredicate, Instr, InstructionData, NamedStruct, TerminatorKind, builder::*};
|
||||
use crate::{CmpPredicate, Instr, InstructionData, TerminatorKind, builder::*};
|
||||
|
||||
impl Debug for Builder {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
|
@ -9,13 +9,13 @@ use std::{convert::Infallible, iter};
|
||||
use crate::{mir::TypeKind, util::try_all};
|
||||
|
||||
use super::{
|
||||
pass::{self, Pass, PassState},
|
||||
pass::{Pass, PassState},
|
||||
typecheck::ErrorKind,
|
||||
typerefs::{ScopeTypeRefs, TypeRef, TypeRefs},
|
||||
types::{pick_return, ReturnType},
|
||||
Block, ExprKind, Expression, FunctionDefinition, FunctionDefinitionKind, IfExpression,
|
||||
IndexedVariableReference, IndexedVariableReferenceKind, Module, NamedVariableRef, ReturnKind,
|
||||
StmtKind, StructType, TypeDefinitionKind,
|
||||
StmtKind, TypeDefinitionKind,
|
||||
TypeKind::*,
|
||||
VagueType::*,
|
||||
};
|
||||
|
@ -8,7 +8,7 @@ use crate::mir::VagueType;
|
||||
|
||||
use super::{
|
||||
typecheck::{Collapsable, ErrorKind},
|
||||
BinaryOperator, TypeDefinition, TypeKind,
|
||||
BinaryOperator, TypeKind,
|
||||
};
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -1,7 +1,3 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::util::try_all;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
Loading…
Reference in New Issue
Block a user