mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 19:28:29 +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.