rust/src/test
Matthias Krüger 7bba5c163c
Rollup merge of #89734 - estebank:issue-72312, r=nikomatsakis
Point at capture points for non-`'static` reference crossing a `yield` point

```
error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
  --> $DIR/issue-72312.rs:10:24
   |
LL |     pub async fn start(&self) {
   |                        ^^^^^ this data with an anonymous lifetime `'_`...
...
LL |         require_static(async move {
   |         -------------- ...is required to live as long as `'static` here...
LL |             &self;
   |             ----- ...and is captured here
   |
note: `'static` lifetime requirement introduced by this trait bound
  --> $DIR/issue-72312.rs:2:22
   |
LL | fn require_static<T: 'static>(val: T) -> T {
   |                      ^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0759`.
```

Fix #72312.
2021-12-11 17:35:23 +01:00
..
assembly Remove the reg_thumb register class for asm! on ARM 2021-12-07 23:54:09 +00:00
auxiliary
codegen Rollup merge of #91355 - alexcrichton:stabilize-thread-local-const, r=m-ou-se 2021-12-05 00:38:00 +01:00
codegen-units Collect panic/panic_bounds_check during monomorphization 2021-10-30 18:21:44 +01:00
debuginfo tests: Ignore test/debuginfo/rc_arc.rs on windows-gnu 2021-11-28 23:09:33 +08:00
incremental Add test with #[rustc_evaluate_where_clauses] 2021-12-03 19:30:19 -05:00
mir-opt EarlyOtherwiseBranch requires -Zunsound-mir-opts 2021-12-02 17:31:38 -08:00
pretty Pretty print break and continue without redundant space 2021-12-08 14:35:20 -08:00
run-make Add --out-dir flag for rustdoc 2021-11-30 10:01:14 +08:00
run-make-fulldeps code-cov: generate dead functions with private/default linkage 2021-12-03 12:00:12 -05:00
run-pass-valgrind
rustdoc Auto merge of #91356 - GuillaumeGomez:improve-rustdoc-layout, r=jsha 2021-12-05 18:35:43 +00:00
rustdoc-gui Rollup merge of #91534 - jsha:heading-color, r=GuillaumeGomez 2021-12-08 23:18:05 +01:00
rustdoc-js Fix warnings in rustdoc JS tests 2021-11-28 11:49:12 -08:00
rustdoc-js-std Fix linkcheck issues 2021-09-12 02:30:24 +00:00
rustdoc-json Create rustdoc_internals feature gate 2021-11-24 21:57:18 +01:00
rustdoc-ui Rollup merge of #91310 - hi-rustin:rustin-patch-rustdoc, r=jyn514 2021-12-11 08:22:30 +01:00
ui Rollup merge of #89734 - estebank:issue-72312, r=nikomatsakis 2021-12-11 17:35:23 +01:00
ui-fulldeps Take a LocalDefId in expect_*item. 2021-11-28 21:09:45 +01:00
COMPILER_TESTS.md