Repository navigation
fix(debugger): allow unused imports on session-core facade re-exports (unblocks niubash CI) - #1772
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
niubash master CI is red on all 8 jobs (run 40258351223). Root cause A: niubash builds rubash as a
[patch]path dependency underRUSTFLAGS=-D warnings(its toolchain action's default, written into$GITHUB_ENV); path dependencies get no--cap-lintsleniency, so this module's four facadepub usegroups — deliberate debugger vocabulary for later work packages, mostly without in-tree consumers yet — fail asunused importserrors and take down every niubash job that compiles the engine.The defect belongs to the engine: any downstream embedding rubash by path with
-D warningshits 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 facadepub usegroups, 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.jsonto this PR's merge commit.Verification
Local: niubash
cargo check --workspace --lockedandcargo clippy -p niubash-runtime --all-targets -- -D warningsagainst this branch as the sibling path dependency — results in the niubash-ci-fix line report.