@@ -56,7 +56,7 @@ use syntax::visit::Visitor;
56
56
* lint attributes.
57
57
*
58
58
* At each node of the ast which can modify lint attributes, all known lint
59
- * passes are also applied. Each lint pass is an oldvisit::vt<()> structure .
59
+ * passes are also applied. Each lint pass is a visit::Visitor implementator .
60
60
* The visitors are constructed via the lint_*() functions below. There are
61
61
* also some lint checks which operate directly on ast nodes (such as
62
62
* @ast::item), and those are organized as check_item_*(). Each visitor added
@@ -508,7 +508,7 @@ impl Context {
508
508
}
509
509
}
510
510
511
- fn add_oldvisit_lint ( & mut self , v : @mut OuterLint ) {
511
+ fn add_old_lint ( & mut self , v : @mut OuterLint ) {
512
512
self . visitors . push ( OldVisitor ( v, v. inner_variant ( ) ) ) ;
513
513
}
514
514
@@ -547,7 +547,7 @@ impl Context {
547
547
}
548
548
}
549
549
}
550
- // Can't use oldvisit::visit_method_helper because the
550
+ // Can't use visit::walk_method_helper because the
551
551
// item_stopping_visitor has overridden visit_fn(&fk_method(... ))
552
552
// to be a no-op, so manually invoke visit_fn.
553
553
Method ( m) => {
@@ -1450,14 +1450,14 @@ pub fn check_crate(tcx: ty::ctxt, crate: @ast::Crate) {
1450
1450
}
1451
1451
1452
1452
// Register each of the lint passes with the context
1453
- cx. add_oldvisit_lint ( lint_while_true ( ) ) ;
1454
- cx. add_oldvisit_lint ( lint_path_statement ( ) ) ;
1455
- cx. add_oldvisit_lint ( lint_heap ( ) ) ;
1456
- cx. add_oldvisit_lint ( lint_type_limits ( ) ) ;
1457
- cx. add_oldvisit_lint ( lint_unused_unsafe ( ) ) ;
1458
- cx. add_oldvisit_lint ( lint_unused_mut ( ) ) ;
1459
- cx. add_oldvisit_lint ( lint_unnecessary_allocations ( ) ) ;
1460
- cx. add_oldvisit_lint ( lint_missing_doc ( ) ) ;
1453
+ cx. add_old_lint ( lint_while_true ( ) ) ;
1454
+ cx. add_old_lint ( lint_path_statement ( ) ) ;
1455
+ cx. add_old_lint ( lint_heap ( ) ) ;
1456
+ cx. add_old_lint ( lint_type_limits ( ) ) ;
1457
+ cx. add_old_lint ( lint_unused_unsafe ( ) ) ;
1458
+ cx. add_old_lint ( lint_unused_mut ( ) ) ;
1459
+ cx. add_old_lint ( lint_unnecessary_allocations ( ) ) ;
1460
+ cx. add_old_lint ( lint_missing_doc ( ) ) ;
1461
1461
cx. add_lint ( lint_session ( cx) ) ;
1462
1462
1463
1463
// Actually perform the lint checks (iterating the ast)
0 commit comments