rust/src/test
Mara Bos f783871ab1
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```
2021-01-17 12:24:39 +00:00
..
assembly Use probe-stack=inline-asm in LLVM 11+ 2021-01-14 22:49:16 -05:00
auxiliary
codegen Auto merge of #78818 - scottmcm:as_rchunks, r=KodrAus 2021-01-17 05:43:55 +00:00
codegen-units simplify-locals: Remove unused assignments regardless of rvalue kind 2020-10-26 10:48:28 +01:00
debuginfo Update tests for extern block linting 2021-01-13 07:49:16 -05:00
incremental Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
mir-opt Add test for #59352 2021-01-15 18:44:50 +01:00
pretty test for issue 80832 2021-01-11 10:44:46 -08:00
run-make Update tests for extern block linting 2021-01-13 07:49:16 -05:00
run-make-fulldeps Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
run-pass-valgrind Update tests for extern block linting 2021-01-13 07:49:16 -05:00
rustdoc Rollup merge of #80254 - Aaron1011:rustdoc-auto-param-env, r=estebank 2021-01-15 18:26:04 +09:00
rustdoc-js Add more rustdoc-js test cases 2020-12-03 14:11:37 -08:00
rustdoc-js-std
rustdoc-json Add warning to compare.py about error messages 2021-01-15 12:50:05 -05:00
rustdoc-ui Add a test 2021-01-16 06:55:29 +03:00
rustfix
ui Rollup merge of #79298 - lcnr:new-elysium, r=matthewjasper 2021-01-17 12:24:39 +00:00
ui-fulldeps Update tests for extern block linting 2021-01-13 07:49:16 -05:00
COMPILER_TESTS.md