ast: Stop using Mod
in Crate
Crate root is sufficiently different from `mod` items, at least at syntactic level. Also remove customization point for "`mod` item or crate root" from AST visitors.
This commit is contained in:
parent
d1462d8558
commit
eb65f15c78
23 changed files with 114 additions and 179 deletions
|
@ -160,8 +160,6 @@ macro_rules! early_lint_methods {
|
|||
fn check_ident(a: Ident);
|
||||
fn check_crate(a: &ast::Crate);
|
||||
fn check_crate_post(a: &ast::Crate);
|
||||
fn check_mod(a: &ast::Mod, b: Span, c: ast::NodeId);
|
||||
fn check_mod_post(a: &ast::Mod, b: Span, c: ast::NodeId);
|
||||
fn check_foreign_item(a: &ast::ForeignItem);
|
||||
fn check_foreign_item_post(a: &ast::ForeignItem);
|
||||
fn check_item(a: &ast::Item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue