Cleaned up unused imports after Phase 143 execution fix (5e662eaaf).
**Priority files (Phase 143)**:
- if_as_last_join_k.rs: removed ValueId, BTreeMap
- loop_true_break_once.rs: added #[cfg(test)] for test-only imports
- post_if_post_k.rs: removed ValueId, BTreeMap
- normalized_helpers.rs: added #[cfg(test)] for Span
**Additional cleanup**:
- contract_checks.rs: removed BasicBlockId
- joinir/mod.rs: removed Info struct re-exports (functions kept)
- patterns/mod.rs: removed Info struct re-exports (functions kept)
- ast_feature_extractor.rs: removed EscapeSkipPatternInfo
- plan_box.rs: added #[cfg(test)] for PlanKind
**Verification**:
- 0 unused import warnings (was 20+)
- All 69 normalized_shadow tests pass
- Clean build with --release
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
36 lines
1.6 KiB
Rust
36 lines
1.6 KiB
Rust
//! JoinIR integration for control flow
|
|
//!
|
|
//! This module contains JoinIR-related control flow logic:
|
|
//! - Pattern lowerers (patterns/)
|
|
//! - Routing logic (routing.rs) ✅
|
|
//! - Parity verification (parity_checker.rs) ✅ Phase 138
|
|
//! - Loop processing context (loop_context.rs) ✅ Phase 140-P5
|
|
//! - MIR block merging (merge/) ✅ Phase 4
|
|
//! - Unified tracing (trace.rs) ✅ Phase 195
|
|
//! - Control tree capability guard (control_tree_capability_guard.rs) ✅ Phase 112
|
|
|
|
pub(in crate::mir::builder) mod control_tree_capability_guard;
|
|
pub(in crate::mir::builder) mod legacy; // Phase 132-R0 Task 4: Legacy routing isolation
|
|
pub(in crate::mir::builder) mod loop_context;
|
|
pub(in crate::mir::builder) mod merge;
|
|
pub(in crate::mir::builder) mod parity_checker;
|
|
pub(in crate::mir::builder) mod patterns;
|
|
pub(in crate::mir::builder) mod routing;
|
|
pub(in crate::mir::builder) mod trace;
|
|
|
|
// Phase 140-P4-A: Re-export for loop_canonicalizer SSOT (crate-wide visibility)
|
|
pub(crate) use patterns::detect_skip_whitespace_pattern;
|
|
|
|
// Phase 104: Re-export read_digits(loop(true)) detection for loop_canonicalizer
|
|
pub(crate) use patterns::detect_read_digits_loop_true_pattern;
|
|
|
|
// Phase 142-P1: Re-export continue pattern detection for loop_canonicalizer
|
|
pub(crate) use patterns::detect_continue_pattern;
|
|
|
|
// Phase 143-P0: Re-export parse_number pattern detection for loop_canonicalizer
|
|
pub(crate) use patterns::detect_parse_number_pattern;
|
|
pub(crate) use patterns::detect_parse_string_pattern;
|
|
|
|
// Phase 91 P5b: Re-export escape skip pattern detection for loop_canonicalizer
|
|
pub(crate) use patterns::detect_escape_skip_pattern;
|