You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(cleanup): remove unused imports from session extractions (v0.5.343)
cargo fix --bin perry --lib -p perry-hir -p perry-codegen --allow-dirty
--release narrows `use` statements across 25 files. No behavior changes.
Mostly imports added during the v0.5.329-v0.5.342 split work that
turned out unused once the moved bodies inlined. Example:
- expr_object.rs: anyhow!, FuncId, ArrayElement, BinaryOp,
is_destructuring_pattern, infer_type_from_expr
- lower_call/native.rs: Function, is_abort_controller_expr,
lower_abort_controller_call, nanbox_string_inline
- compile/resolve.rs: find_file_dep_in_package_json, find_node_modules,
has_perry_native_module, is_ts_file, resolve_exports,
resolve_package_entry, resolve_package_source_entry,
resolve_with_extensions (still callable via super:: re-exports —
just not used inside the resolve module itself).
Workspace warning count: 321 → 255 (-66, -21%).
Remaining 255 warnings are pre-existing categorical issues (63
unnecessary-unsafe-block in perry-runtime, 25 unreachable-pattern in
the HIR/codegen lowerers, 23 unnecessary-transmute, etc.) — separate
bugs not introduced by this session.
Verified:
- cargo build --release clean
- cargo test --workspace 434/0/5 = baseline
- gap tests 25/28; doc-tests 80/82 = baseline.
Final session tally: 15 commits (v0.5.329→v0.5.343), all baselines
green throughout, ~14,000 LOC reorganized into 19 focused sub-modules,
the most-cited monolith (lower::lower_expr) shrunk by 91%, compile.rs
by 60%, lower.rs by 44%, lower_call.rs by 33%.
0 commit comments