]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #95362 - scottmcm:calloc-arrays, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 1 May 2022 00:50:46 +0000 (00:50 +0000)
committerbors <bors@rust-lang.org>
Sun, 1 May 2022 00:50:46 +0000 (00:50 +0000)
commitbf611439e3239ad3f74bd76cc46a4e89b87d8219
treeb10670aa268126bb05f46eaa1808fe47d1012bb2
parent2c858a7c3f189eb11ad89d9bf9f2e87cac9d2b76
parent8034c45a07ff782b32f3fdc054338b524847aea1
Auto merge of #95362 - scottmcm:calloc-arrays, r=Mark-Simulacrum

Support arrays of zeros in Vec's __rust_alloc_zeroed optimization

I happened to notice in https://users.rust-lang.org/t/any-advantage-of-box-u64-16-16-16-over-vec-u64/73500/3?u=scottmcm that the calloc optimization wasn't applying to vectors-of-arrays, so here's the easy fix for that.