rust/compiler
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
..
rustc
rustc_apfloat
rustc_arena Rollup merge of #80470 - SimonSapin:array-intoiter-type, r=m-ou-se 2021-01-31 01:47:25 +01:00
rustc_ast
rustc_ast_lowering Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_builtin_macros Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_codegen_cranelift Rollup merge of #81618 - bjorn3:sync_cg_clif-2021-02-01, r=bjorn3 2021-02-01 14:29:47 +01:00
rustc_codegen_llvm Rollup merge of #79570 - alexcrichton:split-debuginfo, r=bjorn3 2021-01-29 09:17:20 +09:00
rustc_codegen_ssa Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_data_structures Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_driver Indicate both start and end of pass RSS in time-passes output 2021-01-29 12:46:29 -08:00
rustc_error_codes Rollup merge of #81572 - pierwill:edit-error-codes-1, r=jonas-schievink 2021-01-31 16:36:54 +01:00
rustc_errors Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_expand Improve handling of spans around macro result parse errors 2021-01-31 15:24:34 -05:00
rustc_feature Remove const_in_array_rep_expr 2021-01-30 23:20:24 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_interface Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_lexer
rustc_lint Fix early lints inside an async desugaring 2021-02-02 13:57:46 -05:00
rustc_lint_defs Mark the lint doc as compile_fail 2021-02-01 22:13:42 -05:00
rustc_llvm
rustc_macros Indent the code correctly again after removing the query categories. 2021-01-31 21:40:03 +01:00
rustc_metadata Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00
rustc_middle Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov 2021-02-02 14:52:53 +00:00
rustc_mir Rollup merge of #81463 - matsujika:nll-ensure-c-case, r=varkor 2021-02-01 14:29:35 +01:00
rustc_mir_build Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_parse Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov 2021-02-02 14:52:53 +00:00
rustc_parse_format
rustc_passes Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_plugin_impl
rustc_privacy more things are const evaluatable *sparkles* 2021-02-01 20:05:50 +00:00
rustc_query_system
rustc_resolve Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov 2021-02-02 14:52:53 +00:00
rustc_save_analysis
rustc_serialize stabilize int_bits_const 2021-01-31 21:50:47 +10:00
rustc_session Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_span Rollup merge of #81608 - Aaron1011:macro-res-parse-err, r=davidtwco 2021-02-02 12:15:02 +01:00
rustc_symbol_mangling Rollup merge of #80959 - jhpratt:unsigned_abs-stabilization, r=m-ou-se 2021-01-30 13:36:44 +09:00
rustc_target Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_trait_selection Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov 2021-02-02 14:52:53 +00:00
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov 2021-02-02 14:52:53 +00:00