Reduce unused warnings in tests and helpers
This commit is contained in:
@ -57,17 +57,16 @@ use pattern_recognizers::carrier_count::count_carriers_in_body;
|
||||
|
||||
// Re-export parse_number pattern detection
|
||||
pub use pattern_recognizers::parse_number::{
|
||||
detect_parse_number_pattern, detect_read_digits_loop_true_pattern, ParseNumberInfo,
|
||||
ReadDigitsLoopTrueInfo,
|
||||
detect_parse_number_pattern, detect_read_digits_loop_true_pattern,
|
||||
};
|
||||
|
||||
// Re-export parse_string pattern detection
|
||||
pub use pattern_recognizers::parse_string::{
|
||||
detect_continue_pattern, detect_parse_string_pattern, ContinuePatternInfo, ParseStringInfo,
|
||||
detect_continue_pattern, detect_parse_string_pattern,
|
||||
};
|
||||
|
||||
// Re-export skip_whitespace pattern detection
|
||||
pub use pattern_recognizers::skip_whitespace::{detect_skip_whitespace_pattern, SkipWhitespaceInfo};
|
||||
pub use pattern_recognizers::skip_whitespace::detect_skip_whitespace_pattern;
|
||||
|
||||
// Re-export escape pattern recognizer (existing module, not moved in P1)
|
||||
pub use super::escape_pattern_recognizer::detect_escape_skip_pattern;
|
||||
|
||||
@ -22,7 +22,7 @@ pub(in crate::mir::builder) fn try_promote(
|
||||
body: &[ASTNode],
|
||||
inputs: Pattern2Inputs,
|
||||
debug: bool,
|
||||
verbose: bool,
|
||||
_verbose: bool,
|
||||
) -> Result<PromoteDecision, String> {
|
||||
let mut inputs = inputs;
|
||||
use crate::mir::join_ir::lowering::digitpos_condition_normalizer::DigitPosConditionNormalizer;
|
||||
|
||||
@ -484,8 +484,3 @@ fn extract_scan_with_init_parts(
|
||||
|
||||
// Phase 273 P0.1: cf_loop_pattern6_scan_with_init_impl() removed (migrated to plan/lowerer.rs)
|
||||
// The implementation is now in PlanLowerer::lower_scan_with_init()
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
}
|
||||
|
||||
@ -398,7 +398,7 @@ pub(crate) fn lower(
|
||||
let ret_false_bb = builder.next_block_id();
|
||||
|
||||
// Add Jump from current block to header_bb (to terminate the previous block)
|
||||
if let Some(current) = builder.current_block {
|
||||
if let Some(_current) = builder.current_block {
|
||||
builder.emit_instruction(MirInstruction::Jump {
|
||||
target: header_bb,
|
||||
edge_args: None,
|
||||
|
||||
@ -103,7 +103,6 @@ impl NormalizedShadowSuffixRouterBox {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::ast::{ASTNode, LiteralValue, Span};
|
||||
|
||||
#[test]
|
||||
|
||||
@ -515,10 +515,10 @@ impl TrimLoopLowerer {
|
||||
/// 1. Carrier variable (e.g., "is_ch_match")
|
||||
/// 2. Original variable (e.g., "ch") - mapped to same JoinIR ValueId
|
||||
fn setup_condition_env_bindings(
|
||||
builder: &mut MirBuilder,
|
||||
_builder: &mut MirBuilder,
|
||||
trim_helper: &crate::mir::loop_pattern_detection::trim_loop_helper::TrimLoopHelper,
|
||||
break_semantics: BreakSemantics,
|
||||
alloc_join_value: &mut dyn FnMut() -> ValueId,
|
||||
_alloc_join_value: &mut dyn FnMut() -> ValueId,
|
||||
) -> Result<(Vec<ConditionBinding>, Option<crate::mir::join_ir::lowering::common::condition_only_emitter::ConditionOnlyRecipe>), String> {
|
||||
|
||||
use crate::mir::join_ir::lowering::common::condition_only_emitter::ConditionOnlyRecipe;
|
||||
|
||||
Reference in New Issue
Block a user