about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-30 08:00:11 +0000
committerbors <bors@rust-lang.org>2024-05-30 08:00:11 +0000
commit8299d4947a62d5372b8a152829527f897365a87a (patch)
tree5212ef5d563db05ffcc546c7ad2e13c273262e27 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parentd38920f67752c270dcdbf7444f668c019864f12f (diff)
parentf44a6a7cb59ddff2964e26c9eb0ad50a6c555c99 (diff)
downloadrust-8299d4947a62d5372b8a152829527f897365a87a.tar.gz
rust-8299d4947a62d5372b8a152829527f897365a87a.zip
Auto merge of #125711 - oli-obk:const_block_ice2, r=Nadrieril
Make `body_owned_by` return the `Body` instead of just the `BodyId`

fixes #125677

Almost all `body_owned_by` callers immediately called `body`, too, so just return `Body` directly.

This makes the inline-const query feeding more robust, as all calls to `body_owned_by` will now yield a body for inline consts, too.

I have not yet figured out a good way to make `tcx.hir().body()` return an inline-const body, but that can be done as a follow-up
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions