Fix warnings

This commit is contained in:
Sofia 2025-07-19 00:30:49 +03:00
parent f81fc7e925
commit e1d014bcc2
4 changed files with 4 additions and 12 deletions

View File

@ -7,8 +7,7 @@ use crate::{
BlockData, CustomTypeKind, FunctionData, Instr, InstructionData, ModuleData, NamedStruct,
TerminatorKind, Type, TypeData,
debug_information::{
DebugFileData, DebugInformation, DebugLocation, DebugLocationValue, DebugMetadataValue,
DebugProgramValue,
DebugInformation, DebugLocationValue, DebugMetadataValue, DebugProgramValue,
},
util::match_types,
};

View File

@ -2,10 +2,7 @@
//! LLIR ([`Context`]) into LLVM IR. This module is the only one that interfaces
//! with the LLVM API.
use std::{
collections::HashMap,
ptr::{null, null_mut},
};
use std::{collections::HashMap, ptr::null_mut};
use llvm_sys::{
LLVMIntPredicate, LLVMLinkage, LLVMValueKind,

View File

@ -1,7 +1,4 @@
use std::{
cell::{RefCell, RefMut},
rc::Rc,
};
use std::{cell::RefCell, rc::Rc};
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct DebugScopeValue(pub Vec<usize>);

View File

@ -7,8 +7,7 @@ use std::{fmt::Debug, marker::PhantomData};
use builder::{BlockValue, Builder, FunctionValue, InstructionValue, ModuleValue, TypeValue};
use debug::PrintableModule;
use debug_information::{
DebugFileData, DebugInformation, DebugLocation, DebugLocationValue, DebugMetadataValue,
DebugProgramValue, DebugScopeValue,
DebugFileData, DebugInformation, DebugLocationValue, DebugMetadataValue, DebugProgramValue,
};
use util::match_types;