[PR #4902] [MERGED] Fix main's build: meshing candidates carry a SectionMask #5930

Closed
opened 2026-11-03 05:16:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4902
Author: @rdbtCVS
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/streaming-section-mask-build


📝 Commits (1)

  • cd9867d Fix main's build: meshing candidates carry a SectionMask

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 crates/horizon-client-render/src/section_mask.rs (+1 -1)
📝 crates/horizon-client-render/src/streaming.rs (+1 -1)

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

main (1fdd19579) doesn't compile: horizon-client-render fails in streaming.rs.

error[E0308]: mismatched types
    --> crates/horizon-client-render/src/streaming.rs:1472:57
     |     candidates.push((self.distance(x, z), x, z, sections));
     |                                                 ^^^^^^^^ expected `u32`, found `SectionMask`
error[E0599]: no method named `iter` found for type `u32`
    --> crates/horizon-client-render/src/streaming.rs:1488:32

#3961 (chunk streaming priority) collected meshing candidates as (i64, i32, i32, u32), while the level-shape work had meanwhile changed a column's dirty sections to a SectionMask. Each PR built alone; together they don't.

Fix: the candidates carry the SectionMask, and SectionMask derives PartialOrd, Ord so nearest_first (which needs T: Ord) can sort them. Ties never reach the mask in practice: (distance, x, z) is unique per column. No behaviour change.

cargo build --workspace --all-targets passes.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 1fdd19579, 2 min 23 s)

Check Result
Scope ✅ 2 files, +2 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 484 passed (34 s)
rustfmt ✅ (7 s)
clippy ✅ (1 min 12 s)
tests: horizon-client-render ✅ 672 passed (20 s)
doc tests ✅ 0 passed (9 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4902 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/streaming-section-mask-build` --- ### 📝 Commits (1) - [`cd9867d`](https://github.com/horizon-rust/horizon/commit/cd9867da5c2216f67d0ab1ded64cac5753a0aef7) Fix main's build: meshing candidates carry a SectionMask ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/section_mask.rs` (+1 -1) 📝 `crates/horizon-client-render/src/streaming.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. main (1fdd19579) doesn't compile: `horizon-client-render` fails in `streaming.rs`. ``` error[E0308]: mismatched types --> crates/horizon-client-render/src/streaming.rs:1472:57 | candidates.push((self.distance(x, z), x, z, sections)); | ^^^^^^^^ expected `u32`, found `SectionMask` error[E0599]: no method named `iter` found for type `u32` --> crates/horizon-client-render/src/streaming.rs:1488:32 ``` #3961 (chunk streaming priority) collected meshing candidates as `(i64, i32, i32, u32)`, while the level-shape work had meanwhile changed a column's dirty sections to a `SectionMask`. Each PR built alone; together they don't. Fix: the candidates carry the `SectionMask`, and `SectionMask` derives `PartialOrd, Ord` so `nearest_first` (which needs `T: Ord`) can sort them. Ties never reach the mask in practice: `(distance, x, z)` is unique per column. No behaviour change. `cargo build --workspace --all-targets` passes. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 1fdd19579, 2 min 23 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +2 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 484 passed (34 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (1 min 12 s) | | tests: horizon-client-render | ✅ 672 passed (20 s) | | doc tests | ✅ 0 passed (9 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:00 +07:00
Sign in to join this conversation.
No milestone
No project
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
horizon-rust/horizon#5930
No description provided.