Fix warnings
This commit is contained in:
parent
557d5f9722
commit
51c341450b
@ -2,7 +2,7 @@ use std::{cell::RefCell, collections::HashMap, rc::Rc};
|
|||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
typecheck::{Collapsable, ErrorKind},
|
typecheck::{Collapsable, ErrorKind},
|
||||||
BinaryOperator, Literal, TypeKind, VagueLiteral, VagueType,
|
BinaryOperator, Literal, TypeKind, VagueType,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
//! This module contains code relevant to doing a type checking pass on the MIR.
|
//! This module contains code relevant to doing a type checking pass on the MIR.
|
||||||
//! During typechecking relevant types are also coerced if possible.
|
//! During typechecking relevant types are also coerced if possible.
|
||||||
use std::{
|
use std::{convert::Infallible, iter};
|
||||||
cell::RefCell, collections::HashMap, convert::Infallible, iter, marker::PhantomData,
|
|
||||||
thread::scope,
|
|
||||||
};
|
|
||||||
|
|
||||||
use crate::{mir::*, util::try_all};
|
use crate::{mir::*, util::try_all};
|
||||||
use TypeKind::*;
|
use TypeKind::*;
|
||||||
use VagueType::*;
|
use VagueType::*;
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
pass::{Pass, PassState, ScopeFunction, ScopeVariable, Storage},
|
pass::{Pass, PassState, ScopeFunction, ScopeVariable},
|
||||||
scopehints::{ScopeHints, TypeHints, TypeRef},
|
scopehints::{ScopeHints, TypeHints, TypeRef},
|
||||||
types::{pick_return, ReturnType},
|
types::{pick_return, ReturnType},
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
use crate::mir::typecheck::Collapsable;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
Loading…
Reference in New Issue
Block a user