diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-11-12 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-11-12 00:00:00 +0000 |
| commit | 899d9b9bd505d5dbd39e22f1c6d04d516e75c769 (patch) | |
| tree | bca5c14498bf5fe7aaa9ac9578307beadbf0d58b /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 77180db6f81ffdacd14545f1df0a5db55dac1706 (diff) | |
| download | rust-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
