about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.coverage
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2024-11-28 22:04:03 -0800
committerBoxy <rust@boxyuwu.dev>2024-12-02 19:34:47 +0000
commit277e049d918226981f86be50d10dde25282b022f (patch)
tree9d06f459aa35f78d35dcce08e29fdfb5be81fe54 /tests/coverage/branch/lazy-boolean.coverage
parent3bff51ea912d4dfd9caa1e3bc6f68352618208a7 (diff)
downloadrust-277e049d918226981f86be50d10dde25282b022f.tar.gz
rust-277e049d918226981f86be50d10dde25282b022f.zip
Move `Const::{from_anon_const,try_from_lit}` to hir_ty_lowering
These operations are much more about lowering the HIR than about
`Const`s themselves. They fit better in hir_ty_lowering with
`lower_const_arg` (formerly `Const::from_const_arg`) and the rest.

To accomplish this, `const_evaluatable_predicates_of` had to be changed
to not use `from_anon_const` anymore. Instead of visiting the HIR and
lowering anon consts on the fly, it now visits the `rustc_middle::ty`
data structures instead and directly looks for `UnevaluatedConst`s. This
approach was proposed in:
https://github.com/rust-lang/rust/pull/131081#discussion_r1821189257
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions