rust/tests/ui/inline-const
bors d43930dab3 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
2024-05-30 08:00:11 +00:00
..
const-expr-array-init.rs
const-expr-basic.rs
const-expr-generic-err2.rs
const-expr-generic-err2.stderr
const-expr-generic-err.rs
const-expr-generic-err.stderr
const-expr-generic.rs
const-expr-inference.rs
const-expr-lifetime-err.rs
const-expr-lifetime-err.stderr
const-expr-lifetime.rs
const-expr-macro.rs
const-expr-reference.rs
const-match-pat-generic.rs
const-match-pat-generic.stderr
const-match-pat-inference.rs
const-match-pat-lifetime-err.rs
const-match-pat-lifetime-err.stderr
const-match-pat-lifetime.rs
const-match-pat-range.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
const-match-pat.rs
elided-lifetime-being-infer-vars.rs
expr-unsafe-err.rs
expr-unsafe-err.stderr
expr-unsafe.rs
expr-unsafe.stderr
expr-with-block-err.rs
expr-with-block-err.stderr
expr-with-block.rs
instance-doesnt-depend-on-type.rs
interpolated.rs
macro-with-const.rs
pat-match-fndef.rs
pat-match-fndef.stderr
pat-unsafe-err.rs
pat-unsafe-err.stderr
pat-unsafe.rs
pat-unsafe.stderr
promotion.rs
promotion.stderr
referencing_local_variables.rs Reintroduce name resolution check for trying to access locals from an inline const 2024-05-29 08:28:44 +00:00
referencing_local_variables.stderr Reintroduce name resolution check for trying to access locals from an inline const 2024-05-29 08:28:44 +00:00
required-const.rs
required-const.stderr
uninit_local.rs Make body_owned_by return the body directly. 2024-05-29 10:04:08 +00:00
uninit_local.stderr Make body_owned_by return the body directly. 2024-05-29 10:04:08 +00:00