rust/src
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
..
bootstrap Rollup merge of #79997 - coolreader18:wasm-reactor, r=alexcrichton 2021-01-12 07:58:59 +09:00
build_helper Fix even more URLs 2020-11-05 20:11:29 +01:00
ci Auto merge of #80435 - pietroalbini:compression-formats, r=Mark-Simulacrum 2020-12-31 00:23:13 +00:00
doc Update tests for extern block linting 2021-01-13 07:49:16 -05:00
etc Detect invalid rustdoc test commands 2021-01-03 13:53:11 +01:00
librustdoc Auto merge of #80802 - jyn514:box-attributes, r=nnethercote 2021-01-14 02:26:46 +00:00
llvm-project@f9a8d70b6e Update to LLVM 11.0.1 2021-01-07 11:32:10 -08:00
test Auto merge of #79689 - Vooblin:patch1, r=tmandry 2021-01-14 17:27:15 +00:00
tools Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
README.md Update README.md 2020-08-30 13:40:11 -05:00
stage0.txt Bump bootstrap compiler to 1.50 beta 2020-12-30 09:27:19 -05:00
version Bump version to 1.51 2020-12-25 10:42:53 -05:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.