[PATCH 6.12 305/512] rust: alloc: add missing invariant in Vec::set_len()