diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2022-10-25 08:01:28 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-25 08:01:28 +0900 |
| commit | 63835401304adc4bf3bb0d45fda0fe28bceddb4e (patch) | |
| tree | 8d3077f0ae9c7dd985e822a4c27ec126c1bc13df /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | e47d222a94d0d89128b16b09adbb96fccab2f7c8 (diff) | |
| parent | e025306fa050ac593bff366eb1c9bff7bfd00b1d (diff) | |
| download | rust-63835401304adc4bf3bb0d45fda0fe28bceddb4e.tar.gz rust-63835401304adc4bf3bb0d45fda0fe28bceddb4e.zip | |
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``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
