]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #58628 - RReverser:optimise-vec-false, r=oli-obk
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 23 Feb 2019 08:25:32 +0000 (09:25 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Feb 2019 08:25:32 +0000 (09:25 +0100)
Optimise vec![false; N] to zero-alloc

Nowadays booleans have a well-defined representation, so there is no reason not to optimise their allocation.

1  2 
src/liballoc/vec.rs

Simple merge