Commit 67c2a36
committed
fix(lexer_core): gate unsafe_code expect on x86_64 only
The #[expect(unsafe_code)] on prefetch_buffer() is only fulfilled on
x86_64 where the prefetch intrinsics use unsafe. On aarch64 (macOS CI),
the cfg-gated block is compiled out, leaving the expectation unfulfilled
and triggering -D unfulfilled-lint-expectations.
Use #[cfg_attr(target_arch = "x86_64", expect(...))] so the lint
expectation only exists on the architecture that needs it.1 parent 7ace759 commit 67c2a36
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
| |||
0 commit comments