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 Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-basic.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-generic-err2.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-generic-err2.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-generic-err.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-generic-err.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-generic.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-inference.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-lifetime-err.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-lifetime-err.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-lifetime.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-macro.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-expr-reference.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-match-pat-generic.rs #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
const-match-pat-generic.stderr #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
const-match-pat-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-match-pat-lifetime-err.rs #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
const-match-pat-lifetime-err.stderr #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
const-match-pat-lifetime.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
const-match-pat-range.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
const-match-pat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
elided-lifetime-being-infer-vars.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
expr-unsafe-err.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
expr-unsafe-err.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
expr-unsafe.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
expr-unsafe.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
expr-with-block-err.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
expr-with-block-err.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
expr-with-block.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
instance-doesnt-depend-on-type.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
interpolated.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
macro-with-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
pat-match-fndef.rs #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
pat-match-fndef.stderr #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
pat-unsafe-err.rs #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
pat-unsafe-err.stderr #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
pat-unsafe.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
pat-unsafe.stderr #![feature(inline_const_pat)] is no longer incomplete 2024-02-01 10:27:54 +00:00
promotion.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
promotion.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
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 Fix tests and bless 2024-04-24 13:12:33 +01:00
required-const.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
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