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::{
typecheck::{Collapsable, ErrorKind},
BinaryOperator, Literal, TypeKind, VagueLiteral, VagueType,
BinaryOperator, Literal, TypeKind, VagueType,
};
#[derive(Clone)]

View File

@ -1,16 +1,13 @@
//! This module contains code relevant to doing a type checking pass on the MIR.
//! During typechecking relevant types are also coerced if possible.
use std::{
cell::RefCell, collections::HashMap, convert::Infallible, iter, marker::PhantomData,
thread::scope,
};
use std::{convert::Infallible, iter};
use crate::{mir::*, util::try_all};
use TypeKind::*;
use VagueType::*;
use super::{
pass::{Pass, PassState, ScopeFunction, ScopeVariable, Storage},
pass::{Pass, PassState, ScopeFunction, ScopeVariable},
scopehints::{ScopeHints, TypeHints, TypeRef},
types::{pick_return, ReturnType},
};

View File

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