about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-12 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-12 00:00:00 +0000
commit899d9b9bd505d5dbd39e22f1c6d04d516e75c769 (patch)
treebca5c14498bf5fe7aaa9ac9578307beadbf0d58b /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent77180db6f81ffdacd14545f1df0a5db55dac1706 (diff)
downloadrust-899d9b9bd505d5dbd39e22f1c6d04d516e75c769.tar.gz
rust-899d9b9bd505d5dbd39e22f1c6d04d516e75c769.zip
Fix test checking that into_boxed_slice does not panic
The memory allocation in vec might panic in the case of capacity
overflow. Move the allocation outside the function to fix the test.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions