Skip to content

Commit a9c8dc7

Browse files
committed
---
yaml --- r: 77211 b: refs/heads/snap-stage3 c: ec6ab8c h: refs/heads/master i: 77209: 0f9f32b 77207: aa56440 v: v3
1 parent ded08a4 commit a9c8dc7

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,7 +1,7 @@
11
---
22
refs/heads/master: f1132496dddbdd88f321a7919eec3d65136b3f75
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ebfbbe294e87f08516ab060633f6af028943ead0
4+
refs/heads/snap-stage3: ec6ab8c8996d1a08cab3546aa853df3cfbc729c7
55
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)