File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#![ cfg( rayon_unstable) ]
2
2
3
- use super :: Scope ;
3
+ use super :: { Scope , ScopeBase } ;
4
4
use internal:: task:: { ScopeHandle , Task , ToScopeHandle } ;
5
5
use std:: any:: Any ;
6
6
use std:: mem;
@@ -16,16 +16,16 @@ impl<'scope> ToScopeHandle<'scope> for Scope<'scope> {
16
16
17
17
#[ derive( Debug ) ]
18
18
pub struct LocalScopeHandle < ' scope > {
19
- scope : * const Scope < ' scope > ,
19
+ scope : * const ScopeBase < ' scope > ,
20
20
}
21
21
22
22
impl < ' scope > LocalScopeHandle < ' scope > {
23
23
/// Caller guarantees that `*scope` will remain valid
24
24
/// until the scope completes. Since we acquire a ref,
25
25
/// that means it will remain valid until we release it.
26
26
unsafe fn new ( scope : & Scope < ' scope > ) -> Self {
27
- scope. job_completed_latch . increment ( ) ;
28
- LocalScopeHandle { scope : scope }
27
+ scope. base . increment ( ) ;
28
+ LocalScopeHandle { scope : & scope. base }
29
29
}
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments