File tree 1 file changed +11
-10
lines changed
src/librustc/middle/typeck/check
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -693,16 +693,6 @@ pub fn check_item(ccx: &CrateCtxt, it: &ast::Item) {
693
693
debug ! ( "ItemImpl {} with id {}" , token:: get_ident( it. ident) , it. id) ;
694
694
695
695
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
- }
706
696
707
697
match * opt_trait_ref {
708
698
Some ( ref ast_trait_ref) => {
@@ -717,6 +707,17 @@ pub fn check_item(ccx: &CrateCtxt, it: &ast::Item) {
717
707
None => { }
718
708
}
719
709
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
+
720
721
}
721
722
ast:: ItemTrait ( _, _, _, ref trait_methods) => {
722
723
let trait_def = ty:: lookup_trait_def ( ccx. tcx , local_def ( it. id ) ) ;
You can’t perform that action at this time.
0 commit comments