Reduce unused warnings in tests and helpers

This commit is contained in:
2025-12-27 17:49:42 +09:00
parent 0d6229d5a2
commit f654dd316d
26 changed files with 34 additions and 48 deletions

View File

@ -89,7 +89,7 @@ impl AnfExecuteBox {
/// This function recursively normalizes left and right operands (depth-first, left-to-right)
/// and then generates a pure BinaryOp instruction.
fn execute_binary_op_hoist(
plan: &AnfPlan,
_plan: &AnfPlan,
ast: &ASTNode,
env: &mut BTreeMap<String, ValueId>,
body: &mut Vec<JoinInst>,
@ -295,7 +295,7 @@ impl AnfExecuteBox {
/// This function recursively normalizes left and right operands (depth-first, left-to-right)
/// and then generates a pure Compare instruction.
fn execute_compare_hoist(
plan: &AnfPlan,
_plan: &AnfPlan,
ast: &ASTNode,
env: &mut BTreeMap<String, ValueId>,
body: &mut Vec<JoinInst>,

View File

@ -223,7 +223,7 @@ impl AnfPlanBox {
#[cfg(test)]
mod tests {
use super::*;
use crate::ast::{ASTNode, BinaryOperator, LiteralValue, UnaryOperator};
use crate::ast::{ASTNode, BinaryOperator, LiteralValue};
use std::collections::BTreeMap;
fn span() -> crate::ast::Span {

View File

@ -83,7 +83,6 @@ impl AvailableInputsCollectorBox {
#[cfg(test)]
mod tests {
use super::*;
use crate::mir::loop_pattern_detection::function_scope_capture::CapturedVar;
#[test]
fn test_collect_empty() {

View File

@ -58,7 +58,7 @@ use crate::mir::join_ir::{JoinFunction, JoinFuncId, JoinInst, JoinModule};
use crate::mir::ValueId;
#[cfg(test)]
use crate::mir::join_ir::{BinOpKind, ConstValue, MirLikeInst};
use crate::mir::join_ir::{ConstValue, MirLikeInst};
#[cfg(test)]
use crate::mir::join_ir_vm_bridge::join_func_name;
#[cfg(test)]