diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-30 10:23:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-30 10:23:07 +0200 |
| commit | e2e5731be2cf6c4be08f192aae1fd3bd806f6d48 (patch) | |
| tree | 5212ef5d563db05ffcc546c7ad2e13c273262e27 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff | |
| parent | d38920f67752c270dcdbf7444f668c019864f12f (diff) | |
| parent | f44a6a7cb59ddff2964e26c9eb0ad50a6c555c99 (diff) | |
| download | rust-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
