Skip to content

fix(pty): silence Windows seam dead-code warnings without API changes - #27

Closed
Xuepoo wants to merge 2 commits into
mainfrom
ctx-0018/fix-pty-seam-warnings-test
Closed

Xuepoo wants to merge 2 commits into
mainfrom
ctx-0018/fix-pty-seam-warnings-test

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

CTX-0018: make the Windows ConPTY seam exercisable and add targeted allow(dead_code)

  • builder.rs: SpawnConfig now cfg_attr(windows, allow(dead_code)) with comment referencing ADR-0002 Tier-1 Windows follow-up slice

  • platform/windows.rs: Master/Child marked allow(dead_code) with seam comment; open_pty_and_spawn now touches SpawnConfig fields so they are considered read on cfg(windows) instead of dead

  • error.rs: flatten_upstream now cfg_attr(windows, allow(dead_code)) with comment (exercised on Unix, unused until Tier-1 Windows slice)

  • verified zero warnings: cargo check --workspace --all-targets and cargo check --workspace --all-targets --target x86_64-pc-windows-gnu (just check green)

Xuepoo added 2 commits August 26, 2026 23:14
CTX-0018: make the Windows ConPTY seam exercisable and add targeted allow(dead_code)

- builder.rs: SpawnConfig now cfg_attr(windows, allow(dead_code)) with comment referencing ADR-0002 Tier-1 Windows follow-up slice

- platform/windows.rs: Master/Child marked allow(dead_code) with seam comment; open_pty_and_spawn now touches SpawnConfig fields so they are considered read on cfg(windows) instead of dead

- error.rs: flatten_upstream now cfg_attr(windows, allow(dead_code)) with comment (exercised on Unix, unused until Tier-1 Windows slice)

- verified zero warnings: cargo check --workspace --all-targets and cargo check --workspace --all-targets --target x86_64-pc-windows-gnu (just check green)
@Xuepoo Xuepoo closed this Aug 26, 2026
@Xuepoo
Xuepoo deleted the ctx-0018/fix-pty-seam-warnings-test branch August 26, 2026 17:01
@Xuepoo Xuepoo added fix Bug fix area:pty Area: PTY area:platform Area: platform / windowing labels Aug 29, 2026
@Xuepoo Xuepoo added this to the v0.0.1 milestone Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area: platform / windowing area:pty Area: PTY fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant