Skip to content

Commit 45af304

Browse files
committed
---
yaml --- r: 274846 b: refs/heads/stable c: d483a6e h: refs/heads/master
1 parent f0076cb commit 45af304

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: a8fa8410cdda074f37dd948dc48efc20137d4d62
32+
refs/heads/stable: d483a6e2484e7dff3c4279bb026a6da0f1e4ba1e
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc/lint/context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ impl<'a, 'tcx, 'v> hir_visit::Visitor<'v> for LateContext<'a, 'tcx> {
758758
run_lints!(cx, check_item, late_passes, it);
759759
cx.visit_ids(|v| v.visit_item(it));
760760
hir_visit::walk_item(cx, it);
761+
run_lints!(cx, check_item_post, late_passes, it);
761762
})
762763
}
763764

@@ -919,6 +920,7 @@ impl<'a, 'v> ast_visit::Visitor<'v> for EarlyContext<'a> {
919920
run_lints!(cx, check_item, early_passes, it);
920921
cx.visit_ids(|v| v.visit_item(it));
921922
ast_visit::walk_item(cx, it);
923+
run_lints!(cx, check_item, early_passes, it);
922924
})
923925
}
924926

branches/stable/src/librustc/lint/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ pub trait LateLintPass: LintPass {
136136
fn check_mod(&mut self, _: &LateContext, _: &hir::Mod, _: Span, _: ast::NodeId) { }
137137
fn check_foreign_item(&mut self, _: &LateContext, _: &hir::ForeignItem) { }
138138
fn check_item(&mut self, _: &LateContext, _: &hir::Item) { }
139+
fn check_item_post(&mut self, _: &LateContext, _: &hir::Item) { }
139140
fn check_local(&mut self, _: &LateContext, _: &hir::Local) { }
140141
fn check_block(&mut self, _: &LateContext, _: &hir::Block) { }
141142
fn check_block_post(&mut self, _: &LateContext, _: &hir::Block) { }
@@ -180,6 +181,7 @@ pub trait EarlyLintPass: LintPass {
180181
fn check_mod(&mut self, _: &EarlyContext, _: &ast::Mod, _: Span, _: ast::NodeId) { }
181182
fn check_foreign_item(&mut self, _: &EarlyContext, _: &ast::ForeignItem) { }
182183
fn check_item(&mut self, _: &EarlyContext, _: &ast::Item) { }
184+
fn check_item_post(&mut self, _: &EarlyContext, _: &ast::Item) { }
183185
fn check_local(&mut self, _: &EarlyContext, _: &ast::Local) { }
184186
fn check_block(&mut self, _: &EarlyContext, _: &ast::Block) { }
185187
fn check_block_post(&mut self, _: &EarlyContext, _: &ast::Block) { }

0 commit comments

Comments
 (0)