File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5c20a8aa9c377f339bda7f16e8701070d23e6b4e
2
+ refs/heads/master: 066bcc6c79cb464b5a91ab30293d98e3ec2dbcca
Original file line number Diff line number Diff line change @@ -1076,6 +1076,8 @@ mod writeback {
1076
1076
type wb_ctxt = rec( @fn_ctxt fcx,
1077
1077
// A flag to ignore contained items and lambdas
1078
1078
mutable bool ignore,
1079
+ // As soon as we hit an error we have to stop resolving
1080
+ // the entire function
1079
1081
mutable bool success) ;
1080
1082
1081
1083
fn visit_stmt_pre( @wb_ctxt wbcx, & @ast:: stmt s) {
@@ -1101,9 +1103,10 @@ mod writeback {
1101
1103
write:: ty_only( wbcx. fcx. ccx. tcx, l. node. id, lty) ;
1102
1104
}
1103
1105
case ( fix_err( _) ) {
1104
- wbcx. fcx. ccx. tcx. sess. span_fatal( l. span,
1105
- "cannot determine a type \
1106
- for this local variable") ;
1106
+ wbcx. fcx. ccx. tcx. sess. span_err( l. span,
1107
+ "cannot determine a type \
1108
+ for this local variable") ;
1109
+ wbcx. success = false;
1107
1110
}
1108
1111
}
1109
1112
}
You can’t perform that action at this time.
0 commit comments