Commit 7849e37
committed
fix(palette_codec): gate bytemuck_cast_u64_to_u8 to x86_64 (dead on aarch64 under -D warnings)
The new `neon_simd` CI job builds ndarray for aarch64 with the workflow-global
`RUSTFLAGS: -D warnings`. `bytemuck_cast_u64_to_u8`'s only caller is
`unpack_4bit_avx2` (`#[cfg(target_arch = "x86_64")]`), so on aarch64 the function
is dead code → `-D dead-code` build error. Gate the function with the same
`#[cfg(target_arch = "x86_64")]` as its caller. x86_64 is unchanged (both compile
and the function is used); reproduced green locally with `RUSTFLAGS="-D warnings"
cargo build --target aarch64-unknown-linux-gnu`.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K6pT32kk6pnuAAqR3JiYqu1 parent 37306f2 commit 7849e37
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
402 | 406 | | |
403 | 407 | | |
404 | 408 | | |
| |||
0 commit comments