Skip to content

Commit 8617812

Browse files
committed
---
yaml --- r: 135389 b: refs/heads/snap-stage3 c: 073a1ab h: refs/heads/master i: 135387: 16282a5 v: v3
1 parent 10a2006 commit 8617812

File tree

2 files changed

+12
-11
lines changed
  • branches/snap-stage3/src/librustc/middle/typeck/check

2 files changed

+12
-11
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: 74090504219e4e37c1a6d9fdd8600f44b51c7b04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 042cdeefc7708291057770ddd5becf14288dad71
4+
refs/heads/snap-stage3: 073a1abff28c01a541d96a5c7b1bbc5c9c9d0401
55
refs/heads/try: 14378ea357c06c23607ca61ade44f60a7a64a1c7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/typeck/check/mod.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -693,16 +693,6 @@ pub fn check_item(ccx: &CrateCtxt, it: &ast::Item) {
693693
debug!("ItemImpl {} with id {}", token::get_ident(it.ident), it.id);
694694

695695
let impl_pty = ty::lookup_item_type(ccx.tcx, ast_util::local_def(it.id));
696-
for impl_item in impl_items.iter() {
697-
match *impl_item {
698-
ast::MethodImplItem(ref m) => {
699-
check_method_body(ccx, &impl_pty.generics, &**m);
700-
}
701-
ast::TypeImplItem(_) => {
702-
// Nothing to do here.
703-
}
704-
}
705-
}
706696

707697
match *opt_trait_ref {
708698
Some(ref ast_trait_ref) => {
@@ -717,6 +707,17 @@ pub fn check_item(ccx: &CrateCtxt, it: &ast::Item) {
717707
None => { }
718708
}
719709

710+
for impl_item in impl_items.iter() {
711+
match *impl_item {
712+
ast::MethodImplItem(ref m) => {
713+
check_method_body(ccx, &impl_pty.generics, &**m);
714+
}
715+
ast::TypeImplItem(_) => {
716+
// Nothing to do here.
717+
}
718+
}
719+
}
720+
720721
}
721722
ast::ItemTrait(_, _, _, ref trait_methods) => {
722723
let trait_def = ty::lookup_trait_def(ccx.tcx, local_def(it.id));

0 commit comments

Comments
 (0)