Reduce unused warnings in tests and helpers
This commit is contained in:
@ -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>,
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user