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:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-30 10:23:07 +0200
committerGitHub <noreply@github.com>2024-05-30 10:23:07 +0200
commite2e5731be2cf6c4be08f192aae1fd3bd806f6d48 (patch)
tree5212ef5d563db05ffcc546c7ad2e13c273262e27 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parentd38920f67752c270dcdbf7444f668c019864f12f (diff)
parentf44a6a7cb59ddff2964e26c9eb0ad50a6c555c99 (diff)
downloadrust-e2e5731be2cf6c4be08f192aae1fd3bd806f6d48.tar.gz
rust-e2e5731be2cf6c4be08f192aae1fd3bd806f6d48.zip
Rollup 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