about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-18 21:14:45 +0530
committerGitHub <noreply@github.com>2022-07-18 21:14:45 +0530
commite423a6f5f01c362ac7aacaaa86b12bd52f52d512 (patch)
tree0a26f06a1e674589c68664c8c2fc18e1c47250d8 /src/test/codegen
parenta027b01f33e3280dff1a7be09d6090151d3f78a9 (diff)
parent080a53a9533de30c614f37d006985c2f26fd30e7 (diff)
downloadrust-e423a6f5f01c362ac7aacaaa86b12bd52f52d512.tar.gz
rust-e423a6f5f01c362ac7aacaaa86b12bd52f52d512.zip
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`.
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions