You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: obs-core: weak-object parity conversions break Windows clippy after #4951 #4960
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.
Claiming: the Windows clippy break in the weak-object parity test.
RED: Windows-target clippy on obs-tests-core against current master, showing the two useless_conversion errors.
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.
Activity
rdoupe commentedon Nov 17, 2026
Claiming: the Windows clippy break in the weak-object parity test.
obs-tests-coreagainst current master, showing the twouseless_conversionerrors.refs/weakasc_longin 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.
obs-core: Type the weak-object parity counts as c_long (obs-rust#4961)