diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-04-15 11:11:44 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-04-15 11:11:44 -0400 |
| commit | 19c9d93ab59ba68d412d023deafe526d122149f6 (patch) | |
| tree | 02c89e1ebcabec3198be0e0e818f0b29411620c0 /compiler/rustc_lint/src | |
| parent | 8aa11816f32d2e5c19be3f46508e79d1aa2fb3ab (diff) | |
Run buffered lints attached to anon consts
Fixes #84195
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/early.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs index 647ecad0469..54fcaef414f 100644 --- a/compiler/rustc_lint/src/early.rs +++ b/compiler/rustc_lint/src/early.rs @@ -109,6 +109,7 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T> fn visit_anon_const(&mut self, c: &'a ast::AnonConst) { run_early_pass!(self, check_anon_const, c); + self.check_id(c.id); ast_visit::walk_anon_const(self, c); } |
