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> {
327327 unsafe { & * self . state_ptr ( ) }
328328 }
329329
330- // Clones the inner state Arc
330+ // Clones the inner state Rc
331331 #[ inline]
332332 fn state_as_rc ( & self ) -> Rc < State > {
333333 // 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.
335335 let rc = unsafe { Rc :: from_raw ( self . state_ptr ( ) ) } ;
336336 let clone = rc. clone ( ) ;
337337 std:: mem:: forget ( rc) ;
@@ -346,8 +346,8 @@ impl Drop for LocalExecutor<'_> {
346346 return ;
347347 }
348348
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.
351351 let state = unsafe { Rc :: from_raw ( ptr) } ;
352352
353353 {
@@ -585,7 +585,7 @@ fn debug_executor(
585585 }
586586
587587 // 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
589589 // in state_ptr.
590590 let state = unsafe { & * ptr } ;
591591
You can’t perform that action at this time.
0 commit comments