rust/src
Aaron Hill a74b2fb946
Fix early lints inside an async desugaring
Fixes #81531

When we buffer an early lint for a macro invocation,
we need to determine which NodeId to take the lint level from.
Currently, we use the `NodeId` of the closest def parent. However, if
the macro invocation is inside the desugared closure from an `async fn`
or async closure, that `NodeId` does not actually exist in the AST.

This commit explicitly calls `check_lint` for the `NodeId`s of closures
desugared from async expressions, ensuring that we do not miss any
buffered lints.
2021-02-02 13:57:46 -05:00
..
bootstrap Bump rustfmt version 2021-02-02 09:09:52 -05:00
build_helper
ci Auto merge of #81539 - nikic:update-armhf-gnu, r=sanxiyn 2021-02-02 06:23:10 +00:00
doc
etc
librustdoc Rollup merge of #81630 - GuillaumeGomez:overflow-sidebar-title-text, r=pickfire 2021-02-02 12:15:06 +01:00
llvm-project@f9a8d70b6e
rustdoc-json-types
test Fix early lints inside an async desugaring 2021-02-02 13:57:46 -05:00
tools Auto merge of #81539 - nikic:update-armhf-gnu, r=sanxiyn 2021-02-02 06:23:10 +00:00
README.md
stage0.txt Bump rustfmt version 2021-02-02 09:09:52 -05:00
version

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.