Skip to content

fix(debugger): allow unused imports on session-core facade re-exports (unblocks niubash CI) - #1772

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/debugger-facade-allow-unused
Oct 26, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/debugger-facade-allow-unused

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Why

niubash master CI is red on all 8 jobs (run 40258351223). Root cause A: niubash builds rubash as a [patch] path dependency under RUSTFLAGS=-D warnings (its toolchain action's default, written into $GITHUB_ENV); path dependencies get no --cap-lints leniency, so this module's four facade pub use groups — deliberate debugger vocabulary for later work packages, mostly without in-tree consumers yet — fail as unused imports errors and take down every niubash job that compiles the engine.

The defect belongs to the engine: any downstream embedding rubash by path with -D warnings hits it. Fixing it in niubash (dropping -D warnings / capping lints) would weaken niubash's own zero-warning gate and leave the trap for the next embedder.

What

src/debugger/mod.rs: add #[allow(unused_imports)] to each of the four facade pub use groups, with a comment explaining why. Per-group rather than module-wide, so the breakpoints/event/gate/session submodules keep full lint coverage.

Root cause B of the niubash CI failure (cross-target C compiler provisioning for signal-hook's cc build script) is fixed niubash-side in its own PR, which also bumps rubash-pin.json to this PR's merge commit.

Verification

Local: niubash cargo check --workspace --locked and cargo clippy -p niubash-runtime --all-targets -- -D warnings against this branch as the sibling path dependency — results in the niubash-ci-fix line report.

…orts

The debugger module (WP-2 session core, #1576) is pub(crate) and its
pub-use groups are the deliberate vocabulary facade for consumers in
later work packages; most names have no in-tree consumer yet. A path
dependent building this crate with -D warnings (niubash CI, whose
toolchain action injects RUSTFLAGS=-D warnings, and path dependencies
get no --cap-lints leniency) failed with 4 unused-imports errors.
Allow the lint per facade group, not module-wide, so the breakpoints/
event/gate/session submodules keep full lint coverage.
@caomengxuan666
caomengxuan666 merged commit 368353e into master Oct 26, 2026
7 of 10 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/debugger-facade-allow-unused branch October 30, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant