about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJan Behrens <jbe@magnetkern.de>2022-08-22 12:36:44 +0200
committerJan Behrens <jbe@magnetkern.de>2022-08-22 12:36:44 +0200
commit0227b71865b982a309a0f8992e33042a4d23ae0d (patch)
treebc14d66275c908bf074f603dc098b24eb31bd906 /compiler/rustc_codegen_llvm/src
parenta9bb589cd678e034d194193fa892942315b10e2a (diff)
downloadrust-0227b71865b982a309a0f8992e33042a4d23ae0d.tar.gz
rust-0227b71865b982a309a0f8992e33042a4d23ae0d.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions