about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2022-06-13 21:49:59 -0400
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2022-06-14 17:09:07 -0400
commit50f6a9ed87e47c7a8ff6aefcde01a33821e80e20 (patch)
treeba1c3aa1679492531f6238685c14c86997b262d2 /compiler/rustc_codegen_llvm/src
parentca122c7ebb3ab50149c9d3d24ddb59c252b32272 (diff)
downloadrust-50f6a9ed87e47c7a8ff6aefcde01a33821e80e20.tar.gz
rust-50f6a9ed87e47c7a8ff6aefcde01a33821e80e20.zip
use unchecked mul to compute slice sizes
...since slice sizes can't signed wrap

see https://doc.rust-lang.org/std/slice/fn.from_raw_parts.html

> The total size len * mem::size_of::<T>() of the slice must be no larger than isize::MAX.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions