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, BlockData, CustomTypeKind, FunctionData, Instr, InstructionData, ModuleData, NamedStruct,
TerminatorKind, Type, TypeData, TerminatorKind, Type, TypeData,
debug_information::{ debug_information::{
DebugFileData, DebugInformation, DebugLocation, DebugLocationValue, DebugMetadataValue, DebugInformation, DebugLocationValue, DebugMetadataValue, DebugProgramValue,
DebugProgramValue,
}, },
util::match_types, util::match_types,
}; };

View File

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

View File

@ -1,7 +1,4 @@
use std::{ use std::{cell::RefCell, rc::Rc};
cell::{RefCell, RefMut},
rc::Rc,
};
#[derive(Debug, Clone, Hash, PartialEq, Eq)] #[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct DebugScopeValue(pub Vec<usize>); 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 builder::{BlockValue, Builder, FunctionValue, InstructionValue, ModuleValue, TypeValue};
use debug::PrintableModule; use debug::PrintableModule;
use debug_information::{ use debug_information::{
DebugFileData, DebugInformation, DebugLocation, DebugLocationValue, DebugMetadataValue, DebugFileData, DebugInformation, DebugLocationValue, DebugMetadataValue, DebugProgramValue,
DebugProgramValue, DebugScopeValue,
}; };
use util::match_types; use util::match_types;