d3d12: the two clippy warnings main still has #2877
Open
github-bot
wants to merge 1 commit from
github-bot/gh-2877 into main
AGit
pull from: github-bot/gh-2877
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2877
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2877"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@fiestorra on GitHub · 2026-12-01 13:29 UTC · original
fiestorra:fix-clippy-leftovers→main· +9 −2 · 2 files · 1 commits · openReduced to what
mainstill has. The four fixes this branch started with are onmainalready, from the other version of them (#2873):let _ = places.insert(..),while letinpipeline/known.rs,(0.0..1e9).contains(&v)inglyphs/live.rs, and a struct formesh_pipeline's shader bytecodes (MeshStagesthere). That is why the branch had goneDIRTY: it was re-applying what had landed.What is left, and is only here:
1. The six
--all-targetswarnings inemit/valu_tests.rs. Clippy wantsa != bfora < b || a > b, and in a table of RDNA2's sixteenf32compare predicates those are not the same function:The two lints (
neg_cmp_op_on_partial_ord,double_comparisons) are allowed on that one test, with the reason in the doc comment above it.2.
unused_mutonsend_published'sHandoff. What writes it is behinddiagnostics, so the parameter losesmutand keeps the binding under that feature:Measured on
main1fff69129, before and after:The one that fails is
descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in("copied as it was made"), and it fails the same way onmainwithout this change — checked with the change stashed. It is not this branch; it is worth its own look, because it fails on an RTX 4090 and the WARP runner does not run it that way.With
--features diagnosticsnothing new appears: the one warning inleonida-gpu/src/host.rsunder that feature is at line 4677, not here.AI-assisted: yes — DeepSeek v4.1 (flash), which measured both sides of the tree and stashed its own change to check the failure was not its.
Written with an AI assistant.
@merzleckeier on GitHub · 2026-12-01 13:44 UTC · original
Independent clean-target Clippy and GPU comparison check at
118118191+9f27ba2e1, Rust 1.98.1, Win64 MSVC target.clippy --workspace --all-targetsproduced 11 diagnostics on main and 1 on the PR, counting each original diagnostic once. The four targeted warnings and six intentionally allowed comparison warnings disappeared. The remainingunused_mutis inhost.rs::send_published; the code that mutateshis behinddiagnosticsand this was the default-feature check. The NaN comparison fixture also passed on AMD RADV and RTX 4070 SUPER under Wine with real D3D12 dispatch. Both lint builds used separate fresh Cargo target directories.AI-assisted with OpenAI Codex (GPT-6).
@KelboLive on GitHub · 2026-12-01 14:05 UTC · original · reviewed
Checked the clippy claims by running both configurations rather than reading the body:
--workspace--workspace --all-targets21e6bbf4b118118191origin/main3e7b34a52So the four targeted warnings are genuinely gone, and the behaviour hunks are safe:
Stageskeeps theamplify, ms, psevaluation order and regroups onlyCopyfields,let _ = places.insert(..)is the same no-op on aCopyOption,while letkeeps onefetch_addper iteration, and(0.0..1e9).contains(&v)is exactly the old range test withis_finite()still short-circuiting first.leonida-gpu627/0/58 andleonida-shader409/0/5.Two corrections:
--all-targetsnumber does not reproduce: at the stated base the unique total is 10 (4 lib + 6 test), not 15. The diff addresses exactly those ten.maingained anunused_mutatcrates/leonida-gpu/src/host.rs:7435(fn send_published(&self, mut h: Handoff)) after this branch's base, so a simulated merge today still reports one warning. Rebase (or drop thatmut) or the claim is stale on landing.The six
valu_testswarnings are a legitimate false positive, and the allow is correctly scoped:#[allow(...)]sits onfn float_compares_with_nan_on_the_device(line 1034), not the module, andvalu_testsis already#[cfg(all(test, windows))]. The predicates really do differ —a < b || a > bis ordered not-equal (false for NaN) whilea != bis unordered (true for NaN), and!(a >= b)etc. are true when either operand is NaN. Two nits: the allow also listsnonminimal_bool, which no warning required, and the body's sentence is backwards — changingwanttoa != bwould make the NaN rows fail, not pass while checking the wrong thing. The argument that the predicates differ is still right.Cosmetic: the long doc comment above
mesh_pipelinenow documentsstruct Stagesand leavesmesh_pipelineundocumented.@merzleckeier on GitHub · 2026-12-01 14:13 UTC · original
Follow-up on the remaining
unused_mutatsend_published. I checked the overlap with #2873 on3e7b34a5: the two branches conflict in the three files implementing the four shared fixes. With #2873's implementations and boundary test retained, the only additional change from this PR is the scoped NaN test annotation.In that combination, replacing
mut h: Handoffwithh: Handoffand adding#[cfg(feature = "diagnostics")] let mut h = h;at entry is sufficient forcargo xwin clippy --workspace --all-targets -- -D warningsto pass with default features (Win64 MSVC target, Rust 1.98.1). Enabling diagnostics checks the mutable path and still reports ten diagnostics already present onmain.MEASURED, AI-assisted (Codex).
@imShangLi on GitHub · 2026-12-01 15:53 UTC · original
VERIFY-2877 — Linux, Rust 1.98.1 (the pinned toolchain), no GPU device, no game files
Verdict: PASS, with two things to know: it conflicts with #2873, and the
#[allow]it adds is documentation rather than part of the warning count.Head
11811819, base the currentmain88a9f133, merge base21e6bbf4, 1 commit, 4 files, +33/−11:d3d12/crates/leonida-gpu/src/pipeline/host.rs,d3d12/crates/leonida-gpu/src/pipeline/known.rs,d3d12/crates/leonida-hle/src/modules/glyphs/live.rs,d3d12/crates/leonida-shader/src/emit/valu_tests.rs.1. What it fixes
Four clippy warnings that came back after #2681 and #2682 landed, and six more in
valu_tests.rsthat get an#[allow]and an explanation instead of a change.known.rs:246—dropon aCopyvalue.drop(places.insert(hash, …))becomeslet _ = places.insert(hash, …), which is what the function just below it (make) already does.known.rs:268— aloopthat should be awhile let.host.rs:1214—mesh_pipelinehas too many arguments (8/7). The three shader bytecodes become a struct:so it takes six arguments, and the body destructures it on its first line. Only the four call sites change shape.
live.rs:121—manual_range_contains.v >= 0.0 && v < 1e9becomes(0.0..1e9).contains(&v).2. The
valu_tests.rsexplanation is right, and I checked the semanticsThe pull request says the six warnings there must not be "fixed", because clippy's suggestion would change what the test asserts. The table is RDNA2's sixteen
f32compare predicates:I ran the comparisons with a NaN operand:
So with a NaN operand
a < b || a > bis false anda != bis true — clippy's shortcut is not the same predicate, and taking it would make the test pass while checking the wrong thing. The pull request's reasoning is correct, and the#[allow]it adds names exactly the three lints that ask for it (neg_cmp_op_on_partial_ord,nonminimal_bool,double_comparisons).3. One clarification about the
#[allow]The three lints it allows are pedantic lints; the repository enables
clippy::all([workspace.lints.clippy] all = { level = "warn", priority = -1 }), which does not include pedantic. So the#[allow]is not what takes the count from 15 to 0 — the four fixes are.I confirmed it: with
-W clippy::pedanticthe#[allow]suppresses the warnings at those lines, and removing it brings them back:That makes the
#[allow]worth keeping — it stops a later "fix" from breaking the test, and it documents why — but it is not part of the warning count, which is worth knowing when reading the pull request's numbers.4. It conflicts with #2873
Both pull requests change the same three files, and merging them together fails:
They are two versions of the same fixes: the same
let _ =andwhile letinknown.rs, the same struct-for-the-arguments inhost.rs(Stageshere,MeshStagesin #2873), the same range rewrite inlive.rs. They differ in the details — this one adds the comments and the#[allow], #2873 adds a test for thelive.rsrewrite. One of the two needs to be rebased onto the other; I would keep this one's comments and#[allow], and #2873's test.5. What I checked in the part that builds here
leonida-shaderis the only crate of the four that builds on Linux, and it is the one with the#[allow]:cargo clippy -p leonida-shader --all-targetson this branch: the three lints it allows do not appear, and themanual_range_containsinlive.rsis not in this crate.cargo test -p leonida-shader: 247 passed, 0 failed, 2 ignored.I also checked the
live.rsrewrite's semantics against the version withis_finite()kept — the two are the same for every value I could throw at them (2 000 000 randomf64bit patterns, 17 hand-picked values including NaN and ±∞, and the1e9boundary: zero differences). The range form rejects NaN and ±∞ on its own, because both comparisons are false for a NaN.6. What I did not check
cargo clippy --workspace4 → 0,--all-targets15 → 0).leonida-gpuandleonida-hledo not build on Linux for reasons that predate this pull request (upstream: "The crates are Windows-only today … Linux follows #2577"), and clippy needs the crate to compile. The counts also depend on which crates build, which is platform-dependent. So I verified the shape of the fixes (the lint names, the code) and the one crate I could run, not the numbers.leonida-gpuandleonida-hle— same reason. The pull request quotes241 passedforleonida-hleand627 passedforleonida-gpu --lib -- --test-threads=1; I did not run them.Stagesstruct's field namecodeis the best choice — it shadows the meaning of "code" used elsewhere in the file (code(0),code(&ms)are bytecodes). A matter of taste; I am not asking for a change.cargo fmtis left out of the d3d12 workflow, and this pull request'shost.rslines are long enough thatrustfmt --checkwould reformat them.AI-assisted: MiniMax M3.1 Flash.
@Neutron-0 on GitHub · 2026-12-01 17:57 UTC · original
Verified on Windows 11, Rust 1.98.1, no GPU and no game files.
The claim holds on the pull request's own base. The warnings were counted from the compiler's own JSON messages (one per line), so the count is what the compiler reported and not a summary line's word for it:
cargo clippy --workspace... --all-targetse04721c7f118118191The four the report names are all there on the base, and all four are gone on the head:
clippy::too_many_argumentsatcrates/leonida-gpu/src/pipeline/host.rs:1214(8/7)dropping_copy_typesatcrates/leonida-gpu/src/pipeline/known.rs:246clippy::while_let_loopatcrates/leonida-gpu/src/pipeline/known.rs:268clippy::manual_range_containsatcrates/leonida-hle/src/modules/glyphs/live.rs:121and the six in
leonida-shader/src/emit/valu_tests.rs(double_comparisonstwice,neg_cmp_op_on_partial_ordfour times) are still there on the head, as the report says they stay.Two things the report should say, because both are measured and neither blocks the change.
1. The base's counts are five and sixteen, not "four and fifteen". The fifth warning on the base is
unused_mutatcrates/leonida-gpu/src/host.rs:7435(fn send_published(&self, mut h: Handoff)- themutis not needed). It arrived after the commit this pull request was measured on:b4d328901("gpu: send prepared lists in order") changed that signature. So the report's "four" and "fifteen" were right for themainit was written against and are one short for the base the pull request now records,e04721c7f. The head does not have that warning because it does not have that commit - the pull request's branch is older than the base GitHub records for it.2. What happens when it lands on the current
main. The pull request's own branch is clean, but its branch does not containb4d328901, so theunused_mutis not something it fixes.maintoday has that warning (measured:cargo clippy --workspaceonorigin/mainreports it). The pull request's commit was put on top of the currentmainin a worktree - what GitHub would merge - and measured there:main27613ab6bcargo clippy --workspaceunused_mutatcrates/leonida-gpu/src/host.rs:7435)cargo clippy --workspace --all-targetsSo a merge that brings this pull request's commits onto the current
mainleaves that one warning in place, and "clippy is at zero" would not be true of the result. The fix is one word:fn send_published(&self, h: Handoff). Whether that belongs in this pull request or in its own is the maintainer's call; the point is that the tree it produces is not at zero.One note on the
host.rschange, which is the one with a shape. The three shader bytecodes become aStagesstruct so thatmesh_pipelinetakes six arguments instead of eight. The nameStagesis used for something that is not the pipeline's stages - it is the shader bytecodes the mesh pipeline takes - andStagesis already a name in this crate for the actual stage set. A name that says what the thing is (MeshShaders,ShaderBytes) would keep the two apart.Not checked: the warnings on a Linux host (clippy's lints are the same, but only Windows was run here); the crates outside the workspace.
1181181911to3e7b0c5638@fiestorra on GitHub · 2026-12-01 18:11 UTC · original
All four reviews read, and four things changed because of them. Head is now
3e7b0c563, rebased ondcda41f76, 5 files.The
unused_mutthat would have survived the merge (Neutron-0, merzleckeier, KelboLive). You are right, and this was the one that mattered: the parameter wasmut h: Handoffand everything that writes it is behinddiagnostics, so the tree GitHub produces carriedunused_mutand "clippy is at zero" was false of the result. It is now:which is the shape merzleckeier measured.
cargo clippy --workspaceand--all-targetsare both 0 at the head and on a merge intodcda41f76— the second is the number you were checking, and it is the one I should have reported.Stages→MeshShaders(Neutron-0, and the name clash is real:stagesis already the crate's own stage set). I also found out why a careless rename is dangerous here:-replacein PowerShell is case-insensitive, so my first attempt renamed thestagesvariable too. The committed rename is case-sensitive and leaves everystagesalone.The doc (Neutron-0): the stream-forms doc goes back on
mesh_pipeline, and the struct gets two lines of its own. My insertion had left both on the struct.nonminimal_boolleaves the allow (KelboLive): no warning asked for it and--all-targetsis still 0 without it.And the sentence you caught, KelboLive: "the test would pass while checking the wrong thing" is backwards, as you say - changing
wanttoa != bmakes the NaN rows fail, which is louder than passing wrongly, and my sentence got the direction wrong. The reason the allow is right is unchanged (the predicates differ); only the consequence was written backwards.On the counts (KelboLive): your 10 at
21e6bbf4bis right and mine was 15 because I measured it on a tree that already had two more--all-targetsdiagnostics; the body now says what the head measures rather than a number from another tree.I have not touched #2873, which overlaps in three files; my reading of the thread is the same as yours - the two are versions of one change, and this one's comments and allow plus that one's test is the right combination. That is a maintainer's call and I am not going to make it by rebasing over someone else's branch.
Measured at
3e7b0c563:Written with an AI assistant.
d3d12: the last four clippy warnings, and why the six in valu_tests stayto d3d12: the two clippy warnings main still has3e7b0c5638tof98e8ccf93@MoonEyes on GitHub · 2026-12-02 12:29 UTC · original
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-12-02 15:09 UTC · original
RUN (in game, batch of six render-path pull requests), each head merged with
git merge --no-ffonto mainf45165e15, in one build: #29524df667e42, #2969535c14094, #2877f98e8ccf9, #2965c62d57344, #27740dea1a13f, #28155ac7975c6. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 15.2 fps today on main with single pull requests. A Rust build ran beside the game for part of the run, so the fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; free system memory was low (median 1.1 GB); arrival in the world was driven by keys and not checked on pictures. An earlier attempt of the same batch stopped at once because the game window lost focus ("title suspended"); it is not counted.
AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-12-02 15:56 UTC · original
RUN (independent run on Windows, #2877 head
f98e8ccf9, merged locally intomainf45165e15withgit merge --no-ff, as part of a batch of six)The in-game run of the batch is already posted on this pull request; this comment is the test side only (no game data, no game files).
Red: no new test; the change is two lint fixes, so the compiler and clippy are the check.
cargo clippy -p leonida-shader --all-targets --locked: 0 warnings here. With the#[allow(clippy::neg_cmp_op_on_partial_ord, clippy::double_comparisons)]line removed: 6 warnings (4 negated partial-ord comparisons, 2 simplifiable binary expressions).cargo clippy -p leonida-gpu --all-targets --locked: 0 warnings here. Withsend_published(&self, mut h: Handoff)as on main:variable does not need to be mutable.Green (whole batch, one tree, Windows 11, debug profile as
d3d12.ymlruns it):cargo test --workspace --exclude xtask --locked: 1708 passed, 0 failed, 75 ignored (leonida-gpu lib 691 / 59 ignored, leonida-shader lib 248 / 2 ignored incl.float_compares_with_nan_on_the_device, leonida app 44, leonida-formats 47, leonida-menu 48, leonida-pe 36).cargo test -p leonida-gpu --features diagnostics --test replay --locked: 1 passed.cargo test -p xtask --locked: 7 passed.texture::alias_cast_tests::committed_and_placed_r32_uint_textures_cast_to_r9g9b9e5_under_legacy_barriers,watch::tests::a_write_opens_the_view_it_goes_through,pipeline::make::tests::overlapping_waits_cost_the_frame_its_budget_once); each passes alone, a later full run was 691/0, andmainf45165e15alone failed the alias_cast test in 2 of 3 runs.Mutations:
mutback on the parameter: killed (1 warning, default features).let h = h;withoutmutunder--features diagnostics: does not compile (E0596 onh.lists, E0594 onh.compare_at), so the#[cfg(feature = "diagnostics")]rebinding is needed.cargo clippy -p leonida-gpu --features diagnosticsstill shows 10 warnings, none insend_publishedor the new code (they predate the batch).Review: no defect. The allows sit on the one test with the NaN reason in its doc comment;
!(a >= b)ora != bwould change what the test asserts, so allowing is right.send_publishedbehaves the same with and withoutdiagnostics; the trailing blank line removal is cosmetic.Not covered: the CI clippy step is
continue-on-error(report only), so nothing blocks these warnings from returning.Verdict: PASS.
AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-12-02 18:03 UTC · original
Code review only, not built (clippy on Windows targets). Ready.
f98e8ccf9, merge base1fff69129, 334 behind currentmain45dc41f95. A trial merge is clean. CI on the head: all 6 checks pass.main:fn send_published(&self, mut h: Handoff)is atd3d12/crates/leonida-gpu/src/host.rs:7741.float_compares_with_nan_on_the_devicehas no#[allow].Review:
send_publishedrebindslet mut h = h;under#[cfg(feature = "diagnostics")]. That is the minimal way to havemutonly where the diagnostics code writesh, and release codegen is unchanged.valu_tests.rs, the#[allow(clippy::neg_cmp_op_on_partial_ord, clippy::double_comparisons)]is correct. The negated and double comparisons are the RDNA2 compare semantics under test, and the doc comment explains why clippy's rewrites would change what is asserted with NaN operands.host.rsis incidental.mainis clean, so that is resolved.Verdict: ready.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@fiestorra on GitHub · 2026-12-03 10:54 UTC · original
Esta PR ya no compila sobre el
mainde hoy — y el arreglo es de una línea; ramapr-2877-rebased=f3300751fLo encontré al re-verificar mis PRs sobre
d9b618f10(lo que dije esta mañana que no había hecho):Y el motivo es una interacción, no un conflicto:
send_publisheddeclaralet mut h = h;bajo#[cfg(feature = "diagnostics")](con un comentario que dice que sin la feature nada escribeh, ymutsería un aviso) — y esta PR añadeh.compare/h.compare_aten un bloque que no está bajo esa feature. Sindiagnostics,hno es mutable y no compila.O sea:
mainestaba bien y la PR estaba bien por separado; juntas no. Y un merge limpio no lo detecta, que es justo lo que llevo toda la mañana diciendo.El arreglo, una línea:
mutincondicional: el bloque del compare lo necesita en todas las configuraciones, yallow(unused_mut)mantiene el aviso a raya donde la feature no está y nada escribeh.Verificado:
cargo test -p leonida-gpu --lib→715 passed; 1 failed; 59 ignored, con el1de la iGPU de siempre. Y la ramapr-2877-rebased(f3300751f) lleva la PR más este commit (2 files changed, +9/−2, que es lo que la PR ya hacía más la línea delmut).Lo que no he corrido:
leonida-shader(donde esta PR añadevalu_tests.rs) — son diez minutos y no los he gastado en esta pasada. El arreglo está en la parte que no compilaba, que esleonida-gpu.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.