Files
rust/compiler
Matthias Krüger 20cbbbb977 Rollup merge of #112215 - compiler-errors:check-sized-better, r=cjgillot
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
2023-06-03 20:38:12 +02:00
..
2023-06-03 09:44:30 +08:00
2023-05-02 10:45:16 -07:00
2023-06-03 09:44:30 +08:00
2023-05-26 15:18:54 -04:00
2023-05-26 13:03:47 +03:00
2023-05-26 18:55:02 +01:00