mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
20cbbbb977
only suppress coercion error if type is definitely unsized we previously suppressed coercion errors when the return type was `dyn Trait` because we expect a far more descriptive `Sized` trait error to be emitted instead, however the code that does this suppression does not consider where-clause predicates since it just looked at the HIR. let's do that instead by creating an obligation and checking if it may hold. fixes #110683 fixes #112208