File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5fc4045d789ed752c49b9368a2cc9a1cd8c341d5
2
+ refs/heads/master: 5e80e0cbf415219bb4fb483a24bd8cc03836d315
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5
5
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a
Original file line number Diff line number Diff line change @@ -648,7 +648,9 @@ impl Death {
648
648
#[ inline]
649
649
pub fn allow_kill ( & mut self , already_failing : bool ) {
650
650
if self . unkillable == 0 {
651
- fail ! ( "illegal call of rekillable" ) ;
651
+ // we need to decrement the counter before failing.
652
+ self . unkillable -= 1 ;
653
+ fail ! ( "Cannot enter a rekillable() block without a surrounding unkillable()" ) ;
652
654
}
653
655
self . unkillable -= 1 ;
654
656
if self . unkillable == 0 {
Original file line number Diff line number Diff line change @@ -651,8 +651,8 @@ fn test_kill_unkillable_task() {
651
651
}
652
652
}
653
653
654
- #[ ignore( reason = "linked failure" ) ]
655
654
#[ test]
655
+ #[ ignore( cfg( windows) ) ]
656
656
fn test_kill_rekillable_task ( ) {
657
657
use rt:: test:: * ;
658
658
@@ -672,8 +672,8 @@ fn test_kill_rekillable_task() {
672
672
}
673
673
674
674
#[ test]
675
- #[ ignore( cfg( windows) ) ]
676
675
#[ should_fail]
676
+ #[ ignore( cfg( windows) ) ]
677
677
fn test_rekillable_not_nested ( ) {
678
678
do rekillable {
679
679
// This should fail before
You can’t perform that action at this time.
0 commit comments