mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
7e3bee6d8e
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.