Fix warnings

This commit is contained in:
Sofia 2025-07-16 16:16:58 +03:00
parent 29996c4a30
commit d1a37058df
5 changed files with 5 additions and 9 deletions

View File

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

View File

@ -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 {

View File

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

View File

@ -8,7 +8,7 @@ use crate::mir::VagueType;
use super::{
typecheck::{Collapsable, ErrorKind},
BinaryOperator, TypeDefinition, TypeKind,
BinaryOperator, TypeKind,
};
#[derive(Clone)]

View File

@ -1,7 +1,3 @@
use std::collections::HashMap;
use crate::util::try_all;
use super::*;
#[derive(Debug, Clone)]