mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
add visit_anon_const to EarlyContextAndPass
This commit is contained in:
@@ -104,6 +104,11 @@ fn visit_pat(&mut self, p: &'a ast::Pat) {
|
||||
run_early_pass!(self, check_pat_post, p);
|
||||
}
|
||||
|
||||
fn visit_anon_const(&mut self, c: &'a ast::AnonConst) {
|
||||
run_early_pass!(self, check_anon_const, c);
|
||||
ast_visit::walk_anon_const(self, c);
|
||||
}
|
||||
|
||||
fn visit_expr(&mut self, e: &'a ast::Expr) {
|
||||
self.with_lint_attrs(e.id, &e.attrs, |cx| {
|
||||
run_early_pass!(cx, check_expr, e);
|
||||
|
||||
@@ -170,6 +170,7 @@ macro_rules! early_lint_methods {
|
||||
fn check_stmt(a: &ast::Stmt);
|
||||
fn check_arm(a: &ast::Arm);
|
||||
fn check_pat(a: &ast::Pat);
|
||||
fn check_anon_const(a: &ast::AnonConst);
|
||||
fn check_pat_post(a: &ast::Pat);
|
||||
fn check_expr(a: &ast::Expr);
|
||||
fn check_expr_post(a: &ast::Expr);
|
||||
|
||||
Reference in New Issue
Block a user