about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-08-22 20:34:16 +0530
committerGitHub <noreply@github.com>2022-08-22 20:34:16 +0530
commit4ed8fa47592ade04e388bc527c26d09c651b6455 (patch)
tree98d9c646995d871fd4c68aa8e4ad564c50e5e3a0 /compiler/rustc_codegen_llvm/src
parent58d23737a6d77c88af6b9b600058877910db1bff (diff)
parent0227b71865b982a309a0f8992e33042a4d23ae0d (diff)
downloadrust-4ed8fa47592ade04e388bc527c26d09c651b6455.tar.gz
rust-4ed8fa47592ade04e388bc527c26d09c651b6455.zip
Rollup merge of #100872 - JanBeh:PR_vec_default_alloc_doc, r=fee1-dead
Add guarantee that Vec::default() does not alloc

Currently `Vec::new()` is guaranteed to not allocate until elements are pushed onto the `Vec`, but such a guarantee is missing for `Vec`'s implementation of `Default::default`.

This adds such a guarantee for `Vec::default()` to the API reference.

See also [this discussion on URLO](https://users.rust-lang.org/t/guarantee-that-vec-default-does-not-allocate/79903).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions