mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 11:47:13 +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.