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-04-18 19:25:57 +00:00
2023-05-08 03:36:30 +00:00
2023-04-22 19:30:47 +00:00
2023-04-22 19:30:47 +00:00
2023-05-08 03:36:30 +00:00
2023-04-12 23:05:55 +00:00
2023-05-12 20:34:51 +00:00
2023-05-12 20:34:51 +00:00
2023-04-12 22:50:10 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-05-08 03:36:30 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 18:03:11 -04:00
2023-05-30 17:57:37 +08:00
2023-05-30 17:57:37 +08:00
2023-04-12 23:20:11 +00:00
2023-04-11 17:17:32 +00:00
2023-04-11 17:17:32 +00:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-22 00:51:49 -04:00
2023-05-04 11:22:40 +01:00
2023-05-04 11:22:40 +01:00
2023-06-02 16:38:08 +00:00
2023-06-02 16:38:08 +00:00
2023-06-02 16:38:08 +00:00
2023-06-02 16:38:08 +00:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-05-01 15:45:28 +00:00
2023-05-01 15:45:28 +00:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00