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 2
2
refs/heads/master: 25ed29a0edb3d48fef843a0b818ee68faf2252da
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5
- refs/heads/try: 5fc4045d789ed752c49b9368a2cc9a1cd8c341d5
5
+ refs/heads/try: 5e80e0cbf415219bb4fb483a24bd8cc03836d315
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
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