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>
This commit is contained in:
TG0000
2026-11-23 21:45:50 +01:00
parent 4e70e9c106
commit 06c4e39cdc

View File

@ -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 {