Reduce build warnings

This commit is contained in:
2025-12-28 01:34:46 +09:00
parent b104d6af5f
commit 0269fc2ed4
41 changed files with 77 additions and 26 deletions

View File

@ -23,6 +23,7 @@ use crate::mir::loop_pattern_detection::{LoopFeatures, LoopPatternKind};
/// 1. Create with `new()` - AST + Router info only
/// 2. Call `set_canonicalizer_result()` - Add Canonicalizer output
/// 3. Call `verify_parity()` - Check consistency (dev-only)
#[allow(dead_code)]
#[derive(Debug)]
pub struct LoopProcessingContext<'a> {
// ========================================================================
@ -56,6 +57,7 @@ pub struct LoopProcessingContext<'a> {
pub features: LoopFeatures,
}
#[allow(dead_code)]
impl<'a> LoopProcessingContext<'a> {
/// Create new context (canonicalizer not run yet)
///

View File

@ -9,8 +9,10 @@ pub struct MergeConfig {
/// Enable strict contract verification (fail-fast on violations)
pub strict_mode: bool,
/// Exit reconnection mode (Phi or DirectValue)
#[allow(dead_code)]
pub exit_reconnect_mode: Option<crate::mir::join_ir::lowering::carrier_info::ExitReconnectMode>,
/// Allow missing exit block in contract checks (typically exit_block_id before insertion)
#[allow(dead_code)]
pub allow_missing_exit_block: bool,
}
@ -26,6 +28,7 @@ impl MergeConfig {
}
/// Strict configuration for development/debugging (all checks enabled)
#[allow(dead_code)]
pub fn strict() -> Self {
Self {
dev_log: true,

View File

@ -37,6 +37,7 @@ use std::collections::BTreeMap;
#[derive(Debug, Clone)]
pub struct ExitArgsCollectionResult {
/// The source block for these values
#[allow(dead_code)]
pub block_id: BasicBlockId,
/// The expression result value (jump_args[0], optional)
pub expr_result_value: Option<ValueId>,
@ -232,6 +233,7 @@ impl ExitArgsCollectorBox {
/// Convenience method: Convert collected carrier values to BTreeMap
///
/// This matches the format expected by instruction_rewriter.rs's carrier_inputs.
#[allow(dead_code)]
pub fn to_carrier_map(
carrier_values: Vec<(String, (BasicBlockId, ValueId))>,
) -> BTreeMap<String, Vec<(BasicBlockId, ValueId)>> {

View File

@ -24,6 +24,8 @@
//! - `is_skippable_continuation`: Structural check for skippable continuation functions
//! - `merge_and_rewrite`: Main orchestrator for JoinIR→MIR merge
#![allow(dead_code)]
// Phase 260 P0.1 Step 1: Forward all declarations to parent instruction_rewriter.rs
// This allows gradual migration without breaking existing code.
//

View File

@ -18,6 +18,8 @@
//! - Remapping of ValueIds (handled by JoinIrIdRemapper)
//! - Instruction rewriting of non-k_exit instructions (handled by instruction_rewriter)
#![allow(dead_code)]
use crate::mir::{BasicBlockId, MirInstruction, ValueId};
use std::collections::BTreeSet;

View File

@ -52,6 +52,8 @@
//! Phase 255 P2: Common Utilities
//! - common/: Shared helper functions (var() etc.) to eliminate code duplication
#![allow(dead_code)]
pub(in crate::mir::builder) mod common; // Phase 255 P2: Common AST helpers
pub(in crate::mir::builder) mod extractors; // Phase 282 P3: Common extraction interfaces
pub(in crate::mir::builder) mod pattern_recognizers; // Phase 287 P1: Modularized pattern recognizers