rust/library/alloc
Dylan DPC e423a6f5f0
Rollup merge of #99198 - RalfJung:alloc-null-ptr, r=JohnTitor
add missing null ptr check in alloc example

`alloc` can return null on OOM, if I understood correctly. So we should never just deref a pointer we get from `alloc`.
2022-07-18 21:14:45 +05:30
..
benches Add VecDeque::extend TrustedLen benchmark 2022-06-17 23:41:03 +02:00
src Rollup merge of #99198 - RalfJung:alloc-null-ptr, r=JohnTitor 2022-07-18 21:14:45 +05:30
tests Stabilize core::ffi::CStr, alloc::ffi::CString, and friends 2022-07-15 03:10:35 -07:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00