mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 05:20:43 +00:00

It creates the src pointer first, which is then invalidated by a unique borrow of the destination pointer. Swap the borrows around to fix this. Found with miri.