Auto merge of #151337 - the8472:bail-before-memcpy2, r=Mark-Simulacrum

optimize `vec.extend(slice.to_vec())`, take 2

Redoing https://github.com/rust-lang/rust/pull/130998
It was reverted in https://github.com/rust-lang/rust/pull/151150 due to flakiness. I have traced this to layout randomization perturbing the test (the failure reproduces locally with layout randomization), which is now excluded.
This commit is contained in:
bors
2026-01-25 19:45:35 +00:00

Diff Content Not Available