Skip to content

fix/windows runtime useless conversion - #2122

Merged
zackees merged 2 commits into
mainfrom
fix/windows-runtime-useless-conversion
Nov 21, 2026
Merged

zackees merged 2 commits into
mainfrom
fix/windows-runtime-useless-conversion

Conversation

@zackees

@zackees zackees commented Nov 21, 2026

Copy link
Copy Markdown
Member
  • fix(platform): drop the useless NormalizedPath conversion on Windows
  • fix(platform): close test pseudo-terminals explicitly, not with drop()

26b18d0 made parent_dir return NormalizedPath, so wrapping it again trips
clippy::useless_conversion under -D warnings. Only the Windows Check (ci-full)
compiles this file, so the error surfaced first in the setup-soldr v0
canary (#2118).

Ci-Attestation: {"at":1795211926,"gate":"rust/aarch64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["26c6506b22e9502365d304201b95a156d83113a9"],"secs":807,"stamp":"6ad83f3dd1392e7ab082b6a270229563","tree":"771a1dbca8320612d58b4648ff622514474fce17","v":1,"via":"run"}
Ci-Attestation: {"at":1795211926,"gate":"rust/aarch64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["26c6506b22e9502365d304201b95a156d83113a9"],"secs":807,"stamp":"c421396fb28a00083f14ce71458c0fb6","tree":"771a1dbca8320612d58b4648ff622514474fce17","v":1,"via":"run"}
Ci-Attestation: {"at":1795211926,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["26c6506b22e9502365d304201b95a156d83113a9"],"secs":807,"stamp":"d41f7ce9078ab7fba3b33abf1ec3de45","tree":"771a1dbca8320612d58b4648ff622514474fce17","v":1,"via":"run"}
Ci-Attestation: {"at":1795211926,"gate":"rust/x86_64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["26c6506b22e9502365d304201b95a156d83113a9"],"secs":807,"stamp":"23861a9e871ca155436c33990f6b44de","tree":"771a1dbca8320612d58b4648ff622514474fce17","v":1,"via":"run"}
On Windows PtyPair wraps an uninhabited type and has no drop glue, so
drop(pty) in the handler tests trips clippy::drop_non_drop when the
cross-target lint lane checks x86_64-pc-windows-msvc (5971319).
PtyPair::close(self) states the intent and compiles on every host.

Ci-Attestation: {"at":1795221482,"gate":"general/all/dylint-policy","host":"linux-x86_64","key":"","lane":"dylint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":2505,"stamp":"b2b8889b5d7786a8c8738d5bc8eae288","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"add55ba9fd4337dadbff171ba83ece81","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"c207e1a387cee5301bb3d7b3b463cc3c","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"fc431c8c5d623a8e6752fef84f0ea2a7","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"1d8104bace050be50b0db7b9ea4902d8","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"433842918e44ab109f1be98531609ba4","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"e0a3beb18c3f1d5620dae9ca643bf60c","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"7a07b5396a3b41f0419a427645cffa63","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/aarch64-unknown-linux-musl/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"ecfb5ea42d74c9d07c280be49e10a7e7","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"2480a7207c02da0d5b251ccb8372d640","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"5f27bae0ea0270d3003231123c455130","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"54d6b455751a19d967118f18b03a1189","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"c0f0f2cce1e5842a896dc45a26dd6a64","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"fec484f570acc93dfa8d6d9433e03feb","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"934faf90a8dba6e5104356074408dcdb","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795221482,"gate":"rust/x86_64-unknown-linux-gnu/dylint-library-check","host":"linux-x86_64","key":"","lane":"dylint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":2505,"stamp":"cb46a1cff92ebda49af038b848edc6a6","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795221482,"gate":"rust/x86_64-unknown-linux-gnu/workspace-dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":2505,"stamp":"2dd426a6bdd0d40a7c39e53339b5b386","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"2d49e05e93d1bc393482ceba91616fcb","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
Ci-Attestation: {"at":1795218976,"gate":"rust/x86_64-unknown-linux-musl/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["49c31368382691fa4f0eb8696ea6b2f5b406fbf6"],"secs":3988,"stamp":"7c0a24bb91086a283f4708fff9d56848","tree":"3af332a4b32202b2d3d8ea948491335a2fa49384","v":1,"via":"run"}
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@zackees
zackees added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit f0cc1c2 Nov 21, 2026
29 checks passed
zackees added a commit that referenced this pull request Nov 21, 2026
Takes #2122 (f0cc1c2) for the two Windows-only lints, which supersedes this
branch's fix commit with PtyPair::close(); the branch now carries only the
closeout document.
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant