Skip to content

Commit f2a7f64

Browse files
committed
---
yaml --- r: 77662 b: refs/heads/master c: ec6ab8c h: refs/heads/master v: v3
1 parent ddf47b6 commit f2a7f64

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: ebfbbe294e87f08516ab060633f6af028943ead0
2+
refs/heads/master: ec6ab8c8996d1a08cab3546aa853df3cfbc729c7
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
55
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a

trunk/src/librustc/middle/lint.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use syntax::visit::Visitor;
5656
* lint attributes.
5757
*
5858
* 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.
6060
* The visitors are constructed via the lint_*() functions below. There are
6161
* also some lint checks which operate directly on ast nodes (such as
6262
* @ast::item), and those are organized as check_item_*(). Each visitor added
@@ -508,7 +508,7 @@ impl Context {
508508
}
509509
}
510510

511-
fn add_oldvisit_lint(&mut self, v: @mut OuterLint) {
511+
fn add_old_lint(&mut self, v: @mut OuterLint) {
512512
self.visitors.push(OldVisitor(v, v.inner_variant()));
513513
}
514514

@@ -547,7 +547,7 @@ impl Context {
547547
}
548548
}
549549
}
550-
// Can't use oldvisit::visit_method_helper because the
550+
// Can't use visit::walk_method_helper because the
551551
// item_stopping_visitor has overridden visit_fn(&fk_method(... ))
552552
// to be a no-op, so manually invoke visit_fn.
553553
Method(m) => {
@@ -1450,14 +1450,14 @@ pub fn check_crate(tcx: ty::ctxt, crate: @ast::Crate) {
14501450
}
14511451

14521452
// 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());
14611461
cx.add_lint(lint_session(cx));
14621462

14631463
// Actually perform the lint checks (iterating the ast)

0 commit comments

Comments
 (0)