memorysafety / rav1d

An AV1 decoder in Rust.
BSD 2-Clause "Simplified" License
346 stars 22 forks source link

Replace `addr_of_mut!` with `&raw mut` and remove `unsafe` (Rust 1.82) #1346

Open kkysen opened 2 months ago

kkysen commented 2 months ago

Rust 1.82 will stabilize &raw mut finally, and also make the dereference in &raw mut (*ptr).field safe, so we can now make that safe and remove the unsafe block.