about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev+love@gmail.com>2022-10-25 08:01:28 +0900
committerGitHub <noreply@github.com>2022-10-25 08:01:28 +0900
commit63835401304adc4bf3bb0d45fda0fe28bceddb4e (patch)
tree8d3077f0ae9c7dd985e822a4c27ec126c1bc13df /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parente47d222a94d0d89128b16b09adbb96fccab2f7c8 (diff)
parente025306fa050ac593bff366eb1c9bff7bfd00b1d (diff)
downloadrust-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