rust/compiler
Esteban Kuber d10fe26f39 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-10 03:08:22 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty Remove unneeded access to pretty printer's s field in favor of deref 2021-12-07 09:14:46 -08:00
rustc_attr
rustc_borrowck Point at capture points for non-'static reference crossing a yield point 2021-12-10 03:08:22 +00:00
rustc_builtin_macros
rustc_codegen_cranelift
rustc_codegen_gcc Auto merge of #91604 - nikic:section-flags, r=nagisa 2021-12-08 14:58:48 +00:00
rustc_codegen_llvm Auto merge of #91604 - nikic:section-flags, r=nagisa 2021-12-08 14:58:48 +00:00
rustc_codegen_ssa Auto merge of #91604 - nikic:section-flags, r=nagisa 2021-12-08 14:58:48 +00:00
rustc_const_eval Rollup merge of #91551 - b-naber:const-eval-normalization-ice, r=oli-obk 2021-12-08 16:08:07 +01:00
rustc_data_structures Annotate comments onto the LT algorithm 2021-12-06 20:30:15 -05:00
rustc_driver
rustc_error_codes
rustc_errors
rustc_expand Future compatibility warning on cfg_attr on crate_type and crate_name 2021-12-07 11:47:21 -05:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty Remove unneeded access to pretty printer's s field in favor of deref 2021-12-07 09:14:46 -08:00
rustc_incremental
rustc_index
rustc_infer Point at capture points for non-'static reference crossing a yield point 2021-12-10 03:08:22 +00:00
rustc_interface
rustc_lexer
rustc_lint
rustc_lint_defs Future compatibility warning on cfg_attr on crate_type and crate_name 2021-12-07 11:47:21 -05:00
rustc_llvm Auto merge of #91284 - t6:freebsd-riscv64, r=Amanieu 2021-12-06 03:51:05 +00:00
rustc_macros
rustc_metadata
rustc_middle Rollup merge of #91551 - b-naber:const-eval-normalization-ice, r=oli-obk 2021-12-08 16:08:07 +01:00
rustc_mir_build Evaluate inline const pat early and report error if too generic 2021-12-05 21:38:37 +00:00
rustc_mir_dataflow
rustc_mir_transform Rollup merge of #91638 - scottmcm:less-inband-2-of-28, r=petrochenkov 2021-12-08 11:09:01 +01:00
rustc_monomorphize
rustc_parse Rollup merge of #91531 - notriddle:notriddle/issue-87647-expected-semicolon, r=estebank 2021-12-08 11:08:59 +01:00
rustc_parse_format
rustc_passes
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve
rustc_save_analysis
rustc_serialize avoid string validation in rustc_serialize, check a marker byte instead 2021-12-06 18:43:01 +01:00
rustc_session Auto merge of #91555 - matthiaskrgr:rollup-pq0iaq7, r=matthiaskrgr 2021-12-05 15:33:44 +00:00
rustc_span Auto merge of #91224 - couchand:2021-11/avr-asm, r=Amanieu 2021-12-07 14:23:01 +00:00
rustc_symbol_mangling
rustc_target Auto merge of #91224 - couchand:2021-11/avr-asm, r=Amanieu 2021-12-07 14:23:01 +00:00
rustc_trait_selection Auto merge of #91555 - matthiaskrgr:rollup-pq0iaq7, r=matthiaskrgr 2021-12-05 15:33:44 +00:00
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Rollup merge of #91503 - estebank:call-fn-span, r=michaelwoerister 2021-12-07 11:05:03 +01:00