mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 22:05:31 +03:00
f19142044f
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.