rust/compiler/rustc_mir_build
Matthias Krüger 7ed5d469e8
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
2024-05-30 10:23:07 +02:00
..
src Rollup merge of #125711 - oli-obk:const_block_ice2, r=Nadrieril 2024-05-30 10:23:07 +02:00
Cargo.toml Match ergonomics 2024: migration lint 2024-05-12 11:13:33 -04:00
messages.ftl Auto merge of #124661 - RalfJung:only-structural-consts-in-patterns, r=pnkfelix 2024-05-26 07:55:47 +00:00