rust/compiler/rustc_borrowck
Yuki Okushi 6383540130
Rollup merge of - 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 

r? ``@cjgillot``
2022-10-25 08:01:28 +09:00
..
src Rollup merge of - compiler-errors:anon-apit-lt-region-ice, r=cjgillot 2022-10-25 08:01:28 +09:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00