about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-06-30 02:02:46 +0000
committerbors <bors@rust-lang.org>2025-06-30 02:02:46 +0000
commitf19142044f270760ce0ebc03b2c3a44217d8703d (patch)
tree5d142b16e1e6152529e646dad0ea4d0c27358924 /compiler/rustc_const_eval/src
parent35f6036521777bdc0dcea1f980be4c192962a168 (diff)
parent0d37587a3063389672978f0af47a0c75b6af31ce (diff)
downloadrust-f19142044f270760ce0ebc03b2c3a44217d8703d.tar.gz
rust-f19142044f270760ce0ebc03b2c3a44217d8703d.zip
Auto merge of #142941 - compiler-errors:shallow-bail, r=lcnr
Shallowly bail from `coerce_unsized` more

We do a *lot* of coercion in HIR typeck. Most of the time we're just coercing a type to itself, but we always try `coerce_unsized` even if it's not necessary.

Let's avoid doing that by adding a fast path to `coerce_unsized`; see the comment in that function.
Diffstat (limited to 'compiler/rustc_const_eval/src')
0 files changed, 0 insertions, 0 deletions