Files
rust/library/alloc/src
Yuki Okushi 3680ecd8a6 Rollup merge of #90099 - SkiFire13:fix-vec-swap-remove, r=dtolnay
Fix MIRI UB in `Vec::swap_remove`

Fixes #90055

I find it weird that `Vec::swap_remove` read the last element to the stack just to immediately put it back in the `Vec` in place of the one at index `index`. It seems much more natural to me to just read the element at position `index` and then move the last element in its place. I guess this might also slightly improve codegen.
2021-10-21 14:11:13 +09:00
..
2021-09-15 03:06:53 +00:00
2021-10-10 02:19:30 -04:00
2021-09-25 20:04:35 +02:00
2021-10-19 14:54:35 +02:00
2021-10-12 08:53:54 -04:00
2021-04-21 15:45:41 +02:00