Yuki Okushi
6383540130
Rollup merge of #103382 - compiler-errors:anon-apit-lt-region-ice, r=cjgillot
...
Don't ICE when reporting borrowck errors involving regions from `anonymous_lifetime_in_impl_trait`
The issue here is that when we have:
```
trait Trait<'a> { .. }
fn foo(arg: impl Trait) { .. }
```
The anonymous lifetime `'_` that we generate for `arg: impl Trait` doesn't end up in the argument type (which is a param) but in a where-clause of the function, in a predicate whose self type is that param ty.
Fixes #101660
r? ``@cjgillot``
2022-10-25 08:01:28 +09:00
..
2022-10-18 15:51:23 +11:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-25 08:01:28 +09:00
2022-10-24 19:32:25 +09:00
2022-10-23 16:43:48 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 13:48:03 +02:00
2022-10-23 13:48:03 +02:00
2022-10-23 10:09:44 +02:00
2022-10-21 18:04:00 +08:00
2022-10-23 10:09:44 +02:00
2022-10-23 13:48:03 +02:00
2022-10-23 11:33:18 +00:00
2022-10-24 13:35:48 +00:00
2022-10-24 19:32:25 +09:00
2022-10-23 09:06:39 +00:00
2022-10-15 23:34:21 +09:00
2022-10-23 11:33:18 +00:00
2022-10-23 09:06:39 +00:00
2022-10-23 13:48:03 +02:00
2022-10-23 14:48:17 -07:00
2022-10-22 00:13:59 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 11:33:18 +00:00
2022-10-23 14:48:17 -07:00
2022-10-22 13:20:06 -05:00
2022-10-23 10:09:44 +02:00
2022-10-21 02:33:15 -07:00
2022-10-23 10:09:44 +02:00
2022-10-25 08:01:27 +09:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-23 10:09:44 +02:00
2022-10-21 02:33:15 -07:00
2022-10-23 10:09:44 +02:00
2022-10-25 08:01:27 +09:00
2022-10-23 10:09:44 +02:00
2022-10-23 13:48:03 +02:00
2022-10-24 07:24:45 +00:00
2022-10-23 10:09:44 +02:00
2022-10-19 12:41:11 +02:00
2022-10-23 09:06:39 +00:00
2022-10-17 10:54:03 +02:00
2022-10-23 10:09:44 +02:00
2022-10-19 17:11:40 +00:00