d3d12: the two clippy warnings main still has #2877
Open
fiestorra wants to merge 1 commit from
upstream-pr/2877 into main
pull from: upstream-pr/2877
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
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.
Reference
ProjectLeonida/mandy!2877
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T13:29:20Z.
Reduced 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.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T13:44:37Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T14:05:04Z.
Review: COMMENTED
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.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T14:13:59Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-01T15:53:56Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by Neutron-0 on 2026-12-01T17:57:26Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T18:11:48Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:29:34Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T15:09:13Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T15:56:48Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:03:04Z.
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
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T10:54:48Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.