upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTG0000 <122870448+TG0000@users.noreply.github.com>2026-11-23 21:45:50 +0100
committerTG0000 <122870448+TG0000@users.noreply.github.com>2026-11-23 21:45:50 +0100
commit06c4e39cdc7f2761b308cd6b05cf5bb63b4aaeb2 (patch)
tree362d6eabd77a5faa9ccd1d93a9e78199a9d1c43a
parent4e70e9c106c9ca4e014786d0af6f5c447a19181c (diff)
world_atlas_native: mark match_masks_popcnt unsafe for Rust < 1.86
A #[target_feature] fn must be unsafe before Rust 1.86; the call site is already inside an unsafe block. Reported by @ssoxc. Co-Authored-By: Claude Sonnet 5.5 <noreply@openai.com>
-rw-r--r--tools/world_atlas_native/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/world_atlas_native/src/lib.rs b/tools/world_atlas_native/src/lib.rs
index 660ff1227..d364edff5 100644
--- a/tools/world_atlas_native/src/lib.rs
+++ b/tools/world_atlas_native/src/lib.rs
@@ -100,7 +100,7 @@ fn match_masks(tiles: &[u64], cells: &[u64], words: usize, margin: f64, out: &mu
100 100
101#[cfg(target_arch = "x86_64")] 101#[cfg(target_arch = "x86_64")]
102#[target_feature(enable = "popcnt")] 102#[target_feature(enable = "popcnt")]
103fn match_masks_popcnt(tiles: &[u64], cells: &[u64], words: usize, margin: f64, out: &mut [Match]) { 103unsafe fn match_masks_popcnt(tiles: &[u64], cells: &[u64], words: usize, margin: f64, out: &mut [Match]) {
104 if words == 16 { 104 if words == 16 {
105 match_masks(tiles, cells, 16, margin, out); 105 match_masks(tiles, cells, 16, margin, out);
106 } else { 106 } else {