From 06c4e39cdc7f2761b308cd6b05cf5bb63b4aaeb2 Mon Sep 17 00:00:00 2001 From: TG0000 <122870448+TG0000@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:45:50 +0100 Subject: [PATCH] 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 --- tools/world_atlas_native/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #[cfg(target_arch = "x86_64")] #[target_feature(enable = "popcnt")] -fn match_masks_popcnt(tiles: &[u64], cells: &[u64], words: usize, margin: f64, out: &mut [Match]) { +unsafe fn match_masks_popcnt(tiles: &[u64], cells: &[u64], words: usize, margin: f64, out: &mut [Match]) { if words == 16 { match_masks(tiles, cells, 16, margin, out); } else {