about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-01-17 12:24:39 +0000
committerGitHub <noreply@github.com>2021-01-17 12:24:39 +0000
commitf783871ab18346b7ccb7bda04b9a69f103d851a7 (patch)
treed7a0e0c10cd94d841d95a66c26d497c7ee3f5140 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentd51cf9601c714a8383aecade7c98559dd4831625 (diff)
parent15f0921d0c0d95c009bee7d9cd9921306b78615c (diff)
downloadrust-f783871ab18346b7ccb7bda04b9a69f103d851a7.tar.gz
rust-f783871ab18346b7ccb7bda04b9a69f103d851a7.zip
Rollup merge of #79298 - lcnr:new-elysium, r=matthewjasper
correctly deal with late-bound lifetimes in anon consts

adds support for using late bound lifetimes of the parent context in anon consts.
```rust
#![feature(const_generics)]
const fn inner<'a>() -> usize where &'a (): Sized { 3 }

fn test<'a>() {
    let _: [u8; inner::<'a>()];
}
```
The lifetime `'a` is late bound in `test` so it's not included in its generics but is instead dealt with separately in borrowck.
This didn't previously work for anon consts as they have to use the late bound lifetimes of their parent which has
to be explicitly handled.

r? ```@matthewjasper``` cc ```@varkor``` ```@eddyb```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions