Skip to content

Commit be0ed04

Browse files
committed
---
yaml --- r: 144415 b: refs/heads/try2 c: ec6ab8c h: refs/heads/master i: 144413: 72f3b4d 144411: 7b3f2c4 144407: 33352d9 144399: 23fd7e5 144383: aeefe7c v: v3
1 parent 9ada5e4 commit be0ed04

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: ebfbbe294e87f08516ab060633f6af028943ead0
8+
refs/heads/try2: ec6ab8c8996d1a08cab3546aa853df3cfbc729c7
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)