Fix warnings

This commit is contained in:
Sofia 2025-07-12 23:37:24 +03:00
parent 557d5f9722
commit 51c341450b
3 changed files with 3 additions and 8 deletions

View File

@ -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)]

View File

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

View File

@ -1,5 +1,3 @@
use crate::mir::typecheck::Collapsable;
use super::*; use super::*;
#[derive(Debug, Clone)] #[derive(Debug, Clone)]