File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -327,11 +327,11 @@ impl<'a> LocalExecutor<'a> {
327
327
unsafe { & * self . state_ptr ( ) }
328
328
}
329
329
330
- // Clones the inner state Arc
330
+ // Clones the inner state Rc
331
331
#[ inline]
332
332
fn state_as_rc ( & self ) -> Rc < State > {
333
333
// SAFETY: So long as a LocalExecutor lives, it's state pointer will always be a valid
334
- // Arc when accessed through state_ptr.
334
+ // Rc when accessed through state_ptr.
335
335
let rc = unsafe { Rc :: from_raw ( self . state_ptr ( ) ) } ;
336
336
let clone = rc. clone ( ) ;
337
337
std:: mem:: forget ( rc) ;
@@ -346,8 +346,8 @@ impl Drop for LocalExecutor<'_> {
346
346
return ;
347
347
}
348
348
349
- // SAFETY: As ptr is not null, it was allocated via Arc ::new and converted
350
- // via Arc ::into_raw in state_ptr.
349
+ // SAFETY: As ptr is not null, it was allocated via Rc ::new and converted
350
+ // via Rc ::into_raw in state_ptr.
351
351
let state = unsafe { Rc :: from_raw ( ptr) } ;
352
352
353
353
{
@@ -585,7 +585,7 @@ fn debug_executor(
585
585
}
586
586
587
587
// SAFETY: If the state pointer is not null, it must have been
588
- // allocated properly by Arc ::new and converted via Arc ::into_raw
588
+ // allocated properly by Rc ::new and converted via Rc ::into_raw
589
589
// in state_ptr.
590
590
let state = unsafe { & * ptr } ;
591
591
You can’t perform that action at this time.
0 commit comments