Skip to content

bug: obs-core: weak-object parity conversions break Windows clippy after #4951 #4960

Closed

Description

@zackees

What happened?

Master's native Windows Rust clippy check fails after #4951. First observed failing master run: 44032243959, commit 3ea35fc19440a41d82a83791e325baaf8b36ed7f, job 133868052325.

The same master error also fails the Windows job in #4949's merge-group run 44035440406. Workspace tests, including the audio resampler parity tests, pass; the subsequent clippy step fails.

How to reproduce

On Windows, run soldr cargo clippy --locked --workspace --all-targets -- -D warnings. A Linux reproduction can target the Core category tests with soldr cargo clippy -p obs-data --test obs-tests-core --locked --target x86_64-pc-windows-msvc -- -D warnings.

rust/obs-core/tests/obs_core/weak_object_refs_parity.rs:153 calls check(refs.into(), weak.into(), &ops) with generated i32 counts. Windows c_long is also i32, so both conversions trigger clippy::useless_conversion. Linux's wider c_long needs the conversions and host-only lint passes.

Expected behavior

The existing weak-object parity tests compile under warnings-as-errors on every supported target, preserving their generated bounds and assertions.

Proposal and acceptance criteria

Generate the counts in c_long (or use an equally portable typed conversion at the test boundary), preserving bounded values and the same test cases. Do not suppress clippy warnings.

Show RED with Windows-target clippy on the existing code, then GREEN with the same command after the fix. Run the focused weak-object parity tests and host lint. Keep the existing category executable; no new executable or C/public-header changes are needed.

Decisions

Activity

  1. rdoupe commented on Nov 17, 2026

    @rdoupe
    Collaborator

    Claiming: the Windows clippy break in the weak-object parity test.

    1. RED: Windows-target clippy on obs-tests-core against current master, showing the two useless_conversion errors.
    2. GREEN: generate refs/weak as c_long in the proptest so no conversion is needed, same bounds and cases; rerun the Windows-target clippy, host lint and the weak-object parity tests.

    PR within the hour.

  2. added
    ready
    on Nov 17, 2026
  3. added a commit that references this issue on Nov 21, 2026
    68956c9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions