diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-25 11:00:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-25 11:00:13 +0100 |
| commit | e3fbaa87c970f12620631edfbfa1bb3c05b34633 (patch) | |
| tree | 78e9cdd60ffdc01228067a9666fd3ab661ef0b4e /compiler/rustc_parse/src/errors.rs | |
| parent | fbb81fa89cf5c78d73244e6db3ac5e041d3c33ca (diff) | |
| parent | fb65ca14b21cb3210251915864007d7c0d64ae21 (diff) | |
| download | rust-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_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
