Run buffered lints attached to anon consts

Fixes #84195
This commit is contained in:
Aaron Hill 2021-04-15 11:11:44 -04:00
parent 8aa11816f3
commit 19c9d93ab5
No known key found for this signature in database
GPG key ID: B4087E510E98B164
3 changed files with 35 additions and 0 deletions

View file

@ -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);
}