Skip to content

xdna: allow clippy::mut_from_ref on Bo::as_mut_slice - #812

Closed
ghazni101 wants to merge 1 commit into
warpfront:betafrom
ghazni101:xdna/mut-from-ref-allow
Closed

ghazni101 wants to merge 1 commit into
warpfront:betafrom
ghazni101:xdna/mut-from-ref-allow

Conversation

@ghazni101

Copy link
Copy Markdown
Contributor

Rust 1.99 clippy deny-by-default lint fired on the &self -> &mut [u8] accessor. The pattern is deliberate: the BO mapping is device-shared and aliasing discipline is the caller's documented contract. Allow on both the Linux impl and the non-Linux stub.

(Originally rode along on #805/#806/#807; split out when those retargeted to beta.)

Rust 1.99 clippy deny-by-default lint fired on the &self -> &mut [u8]
accessor. The pattern is deliberate: the BO mapping is device-shared and
aliasing discipline is the caller's documented contract. Allow on both
the Linux impl and the non-Linux stub.
@ghazni101

Copy link
Copy Markdown
Contributor Author

Superseded: upstream #804 (fix/beta-ci-green, all-green) carries the identical mut_from_ref allow on the Linux impl as ff75522. The non-Linux stub doesn't hit the deny path; if CI ever flags it, that hunk is a one-liner to resubmit.

@ghazni101 ghazni101 closed this Oct 3, 2026
@ghazni101
ghazni101 deleted the xdna/mut-from-ref-allow branch October 3, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant