diff options
| author | bors <bors@rust-lang.org> | 2024-05-30 08:00:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-30 08:00:11 +0000 |
| commit | d43930dab36b81267d436fd16066419d3a66e054 (patch) | |
| tree | 1bf06acd6872904d9bc1899203d8145642dddbef /compiler/rustc_pattern_analysis/tests | |
| parent | 32a3ed229caaaa6476ee1b0e644dd53579454536 (diff) | |
| parent | a34c26e7ecfbfe3f4fd5fbd4868a0cba5676e6a5 (diff) | |
| download | rust-d43930dab36b81267d436fd16066419d3a66e054.tar.gz rust-d43930dab36b81267d436fd16066419d3a66e054.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 'compiler/rustc_pattern_analysis/tests')
0 files changed, 0 insertions, 0 deletions
