You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vec.remove(0) returns the wrong element for 64-byte elements (POD too); into_iter inherits it #1689
Expected 1 then 2, actual 2 then 2. A 64-byte POD record; the same with a 24-byte record ({ n: i32, s: str }) prints correctly, and a six-field record with three strs (also 64 bytes) shows the same wrong result (remove(0) yields element 1, then element 1 again — the removed value is read after the shift, or the shift copies the wrong range). into_iter (VecIntoIter.next = remove(0)) inherits it, which is how it was first seen.
Likely class: the aggregate-copy / memmove lowering for element sizes above the store-merging threshold (#1129); route: --dump-mir of Vec.remove specialized for H, then the emitted IR of the shift and the returned copy.
changed the title [-]into_iter over a returned Vec of a record with three str fields yields the last element at every position[/-][+]Vec.remove(0) returns the wrong element for 64-byte elements (POD too); into_iter inherits it[/+]on Sep 25, 2026
Activity
Modeled C: retained variadic callback pairs — abandon path, setter st…
[-]into_iter over a returned Vec of a record with three str fields yields the last element at every position[/-][+]Vec.remove(0) returns the wrong element for 64-byte elements (POD too); into_iter inherits it[/+]Modeled C: retained variadic callback pairs — abandon, setter status …
codegen: lower a large aggregate copy to memmove only when nothing be…