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 | 7ed5d469e8dac6a7381cd7300d0b420c5f0bf4c1 (patch) | |
| tree | bd37c28651c69bb73cbeca955b43f6b64a6fd7bf /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | 70e7b49cf225f0036861a7e530a37300fc609986 (diff) | |
| parent | a34c26e7ecfbfe3f4fd5fbd4868a0cba5676e6a5 (diff) | |
| download | rust-7ed5d469e8dac6a7381cd7300d0b420c5f0bf4c1.tar.gz rust-7ed5d469e8dac6a7381cd7300d0b420c5f0bf4c1.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 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
