Files
rust/compiler/rustc_codegen_ssa
Jonathan Brouwer 87749cea75 Rollup merge of #157588 - scottmcm:copy-nsuw, r=saethlin
Use `mul nuw nsw` in `intrinsics::copy`

Essentially the same as rust-lang/rust#157560, just for `copy` instead of `copy_nonoverlapping`.

> Yeah, in fact both copy and copy_nonoverlapping could use this since we know the result must be at most isize::MAX else it cannot be inbounds.
> ~ https://github.com/rust-lang/rust/pull/157560#issuecomment-4642072687

r? saethlin
2026-06-08 09:41:58 +02:00
..
…

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.