Skip to content

ci: release lint fails on aarch64: unnecessary_cast on wchar_t/c_char in obs-util #1484

Closed

Description

@rdoupe

The daily release has failed since 2026-10-19 (no release after 0.1.0-beta.20261018), and so does the scheduled full run: the release gate's Rust Cross Lint (ci/local_gate.py --lane cross-release) fails clippy with -D warnings on aarch64-unknown-linux-gnu.

Location

clippy::unnecessary_cast in rust/obs-util, on targets where the C character types are unsigned:

  • src/platform/unix/file.rs:55 and :158 (File::open_wide, mbs_to_utf8): c as u32 on wchar_t. wchar_t is i32 on x86-64 Linux and macOS and u32 on aarch64 Linux.
  • src/ffi/cf_parser.rs:39 and :56 (from obs-util: port cf-parser (#1466) #1467, merged 2026-10-20): as u8 on c_char, which is u8 on aarch64 Linux and aarch64-pc-windows-msvc.

The casts are needed on the targets where the types are signed, so the PR gate (x86-64 Linux host, x86_64-pc-windows-msvc, aarch64-apple-darwin) passes; only the release-only targets see them as no-ops.

Class

Release blocker (CI).

How it is reached

Release OBS-Studio-Rust run 39284837053 (2026-10-19), job "Release gate / Rust Cross Lint (release targets)": error: casting to the same type is unnecessary (u32 -> u32) at file.rs:158, and the same at :55. The cf_parser.rs ones landed after that run and fail the same lane on current master.

Fix

Keep the casts and allow the lint where the type is target-dependent, with a comment, as ffi/dstr.rs and platform/unix/nix.rs already do. PR follows.

Activity

  1. rdoupe commented on Oct 20, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: fix ready, ci/local_gate.py --lane cross-release passes locally; PR follows now.

  2. added
    claimed
    on Oct 20, 2026
  3. added a commit that references this issue on Oct 20, 2026
    21c4140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions