about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-26 22:45:18 +0000
committerbors <bors@rust-lang.org>2025-07-26 22:45:18 +0000
commit283a0746a244a88503fed61844f44df925ccdbb6 (patch)
treeed63ef3f5b1d2f81899e9a3a436ba7f9a0aac451 /library/std/src
parentce5fdd7d42aba9a2925692e11af2bd39cf37798a (diff)
parentb7e025cfb64094d8672c752a9fffb12e9bc79567 (diff)
downloadrust-283a0746a244a88503fed61844f44df925ccdbb6.tar.gz
rust-283a0746a244a88503fed61844f44df925ccdbb6.zip
Auto merge of #143860 - scottmcm:transmute-always-rvalue, r=WaffleLapkin
Let `codegen_transmute_operand` just handle everything

When combined with rust-lang/rust#143720, this means `rvalue_creates_operand` can just return `true` for *every* `Rvalue`.  (A future PR could consider removing it, though just letting it optimize out is fine for now.)

It's nicer anyway, IMHO, because it avoids needing the layout checks to be consistent in the two places, and thus is an overall reduction in code.  Plus it's a more helpful building block when used in other places this way.

(TBH, it probably would have been better to have it this way the whole time, but I clearly didn't understand `rvalue_creates_operand` when I originally wrote rust-lang/rust#109843.)
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions