Matthias Krüger
ef27e43807
Rollup merge of #108063 - compiler-errors:associated-type-bounds-in-bad-position, r=cjgillot
...
Ban associated type bounds in bad positions
We should not try to lower associated type bounds into TAITs in positions where `impl Trait` is not allowed (except for in `where` clauses, like `where T: Trait<Assoc: Bound>`).
This is achieved by using the same `rustc_ast_lowering` machinery as impl-trait does to characterize positions as universal/existential/disallowed.
Fixes #106077
Split out the first commit into #108066 , since it's not really related.
2023-02-23 06:18:05 +01:00
..
2023-02-21 13:13:09 +00:00
2023-02-22 08:40:47 -07:00
2023-02-16 15:14:45 +11:00
2023-02-22 21:52:26 +00:00
2023-02-19 22:54:08 +01:00
2023-02-22 21:52:26 +00:00
2023-02-22 08:40:47 -07:00
2023-02-23 06:18:05 +01:00
2023-02-22 08:40:47 -07:00
2023-02-19 03:46:03 +00:00
2023-02-21 05:21:07 +00:00
2023-02-18 03:34:27 +00:00
2023-02-13 18:41:18 +00:00
2023-02-14 12:18:33 +01:00
2023-02-18 02:42:43 +00:00
2023-02-22 08:40:47 -07:00
2023-02-21 23:02:00 +01:00
2023-02-22 08:40:47 -07:00
2023-02-19 03:46:03 +00:00
2023-02-16 11:42:35 -03:00
2023-02-20 15:08:05 +01:00
2023-02-22 08:40:47 -07:00
2023-02-19 21:27:04 -08:00
2023-02-22 21:52:26 +00:00
2023-02-16 11:42:35 -03:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-22 10:35:08 +01:00
2023-02-21 05:21:07 +00:00
2023-02-23 06:18:05 +01:00
2023-02-21 05:21:07 +00:00
2023-02-13 18:41:18 +00:00
2023-02-22 08:40:47 -07:00
2023-02-17 16:20:38 +00:00
2023-02-23 06:18:05 +01:00
2023-02-16 20:58:48 +00:00
2023-02-14 17:31:58 +08:00
2023-02-22 08:40:47 -07:00
2023-02-23 00:19:12 +00:00
2023-02-16 11:42:35 -03:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-12 23:18:15 +01:00
2023-02-21 05:21:07 +00:00
2023-02-16 11:42:35 -03:00
2023-02-22 08:40:47 -07:00
2023-02-21 00:00:49 +00:00
2023-02-20 15:28:59 +00:00
2023-02-18 13:26:46 +01:00
2023-02-22 08:40:47 -07:00
2023-02-22 13:08:13 +00:00
2023-02-23 00:19:12 +00:00
2023-02-16 15:06:17 -08:00
2023-02-14 20:22:10 +00:00
2023-02-14 20:54:25 -05:00
2023-02-22 08:40:47 -07:00
2023-02-12 20:18:48 -05:00
2023-02-14 03:46:43 +00:00
2023-02-22 08:40:47 -07:00
2023-02-14 20:26:03 +00:00
2023-02-22 09:44:26 +08:00
2023-02-18 19:05:44 +01:00
2023-02-21 11:51:56 +11:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-21 05:21:07 +00:00
2023-02-21 05:21:07 +00:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-02-22 21:52:26 +00:00
2023-02-22 08:40:47 -07:00
2023-02-23 06:18:05 +01:00
2023-02-22 08:40:47 -07:00
2023-02-21 05:21:07 +00:00
2023-02-21 05:21:07 +00:00
2023-02-21 05:21:07 +00:00
2023-02-18 02:42:43 +00:00
2023-02-22 08:40:47 -07:00
2023-02-13 18:41:18 +00:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00