mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 08:58:36 +00:00
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user