rust/compiler
bors 4275ef6c9d Auto merge of #79689 - Vooblin:patch1, r=tmandry
Update tests of "unused_lifetimes" lint for async functions and corresponding source code

Before this PR the following code would cause an error:
```
#![deny(unused_lifetimes)]
async fn f<'a>(_: &'a i32) {}
fn main() {}
```
It was happening because of the desugaring of return type in async functions. As a result of the desugaring, the return type contains all lifetimes involved in the function signature. And these lifetimes were interpreted separately from the same in the function scope => so they are unused.

Now, all lifetimes from the return type are interpreted as used. It is also not perfect, but at least this lint doesn't cause wrong errors now.

This PR connected to issues #78522, #77217
2021-01-14 17:27:15 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Rework diagnostics for wrong number of generic args 2021-01-10 13:07:40 +01:00
rustc_ast_lowering Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_ast_passes Auto merge of #76580 - rokob:iss76011, r=estebank 2021-01-12 02:56:51 +00:00
rustc_ast_pretty ast: Remove some indirection layers from values in key-value attributes 2021-01-09 21:50:39 +03:00
rustc_attr
rustc_builtin_macros resolve: Simplify built-in macro table 2021-01-10 14:48:47 +03:00
rustc_codegen_cranelift
rustc_codegen_llvm Auto merge of #80499 - matthiaskrgr:red_clos, r=estebank 2021-01-12 11:20:47 +00:00
rustc_codegen_ssa Auto merge of #80499 - matthiaskrgr:red_clos, r=estebank 2021-01-12 11:20:47 +00:00
rustc_data_structures Serialize incr comp structures to file via fixed-size buffer 2021-01-11 12:13:22 -08:00
rustc_driver Rollup merge of #80859 - jsgf:fix-pretty-remap, r=davidtwco 2021-01-13 03:20:21 +01:00
rustc_error_codes Update code to account for extern ABI requirement 2021-01-13 07:49:45 -05:00
rustc_errors Rollup merge of #79757 - jryans:long-line-tab-handling-early-expand, r=estebank 2021-01-12 16:13:15 +09:00
rustc_expand Auto merge of #80499 - matthiaskrgr:red_clos, r=estebank 2021-01-12 11:20:47 +00:00
rustc_feature Allow #[rustc_builtin_macro = "name"]. 2021-01-09 19:50:06 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_hir_pretty Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_incremental Serialize incr comp structures to file via fixed-size buffer 2021-01-11 12:13:22 -08:00
rustc_index
rustc_infer Auto merge of #80960 - Dylan-DPC:rollup-89tri8x, r=Dylan-DPC 2021-01-13 04:29:45 +00:00
rustc_interface Rollup merge of #80870 - petrochenkov:bmactable, r=oli-obk 2021-01-12 07:59:13 +09:00
rustc_lexer
rustc_lint Introduce missing ABI lint on extern blocks 2021-01-13 07:49:16 -05:00
rustc_lint_defs Introduce missing ABI lint on extern blocks 2021-01-13 07:49:16 -05:00
rustc_llvm Update tests for extern block linting 2021-01-13 07:49:16 -05:00
rustc_macros
rustc_metadata Encode optimized MIR of generators when emitting metadata 2021-01-14 00:00:00 +00:00
rustc_middle Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_mir Auto merge of #79322 - jyn514:refactor-impl, r=estebank 2021-01-13 01:40:41 +00:00
rustc_mir_build Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_parse Auto merge of #77524 - Patryk27:fixes/66228, r=estebank 2021-01-13 20:35:58 +00:00
rustc_parse_format
rustc_passes Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_plugin_impl
rustc_privacy Separate out a hir::Impl struct 2021-01-12 20:32:33 -05:00
rustc_query_system Don't mark force_query_with_job as inline(always) 2021-01-08 18:38:33 -05:00
rustc_resolve Auto merge of #79689 - Vooblin:patch1, r=tmandry 2021-01-14 17:27:15 +00:00
rustc_save_analysis Separate out a hir::Impl struct 2021-01-12 20:32:33 -05:00
rustc_serialize rustc_serialize: fix incorrect signed LEB128 decoding 2021-01-11 12:13:26 -08:00
rustc_session Rollup merge of #79997 - coolreader18:wasm-reactor, r=alexcrichton 2021-01-12 07:58:59 +09:00
rustc_span Auto merge of #80654 - Aaron1011:fix/dummy-span-ctxt, r=wesleywiser 2021-01-13 23:24:31 +00:00
rustc_symbol_mangling Rollup merge of #79968 - bjorn3:better_drop_glue_debuginfo, r=matthewjasper 2021-01-10 16:55:55 +09:00
rustc_target Rollup merge of #80662 - rxrbln:master, r=estebank 2021-01-13 03:20:15 +01:00
rustc_trait_selection Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_traits
rustc_ty_utils Auto merge of #77524 - Patryk27:fixes/66228, r=estebank 2021-01-13 20:35:58 +00:00
rustc_type_ir
rustc_typeck Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00