about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-25 11:00:13 +0100
committerGitHub <noreply@github.com>2024-03-25 11:00:13 +0100
commite3fbaa87c970f12620631edfbfa1bb3c05b34633 (patch)
tree78e9cdd60ffdc01228067a9666fd3ab661ef0b4e /compiler/rustc_codegen_llvm/src
parentfbb81fa89cf5c78d73244e6db3ac5e041d3c33ca (diff)
parentfb65ca14b21cb3210251915864007d7c0d64ae21 (diff)
downloadrust-e3fbaa87c970f12620631edfbfa1bb3c05b34633.tar.gz
rust-e3fbaa87c970f12620631edfbfa1bb3c05b34633.zip
Rollup merge of #122990 - SkiFire13:transmute-may-copy, r=jhpratt
Clarify transmute example

The example claims using an iterator will copy the entire vector, but this is not true in practice thanks to internal specializations in the stdlib (see https://godbolt.org/z/cnxo3MYs5 for confirmation that this doesn't reallocate nor iterate over the vec's elements). Since neither the copy nor the optimization is guaranteed I opted for saying that they _may_ happen.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions