Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kyren committed May 14, 2023
1 parent 7504e1b commit ba469bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gc-arena/src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl<R: for<'a> Rootable<'a>> Arena<R> {
// be 'static. If the 'gc lifetime ends up in a user type, it must either be from a type returned
// by gc-arena (which again, knows that 'gc is really 'static), or it is in a place where it must be
// valid that any lifetime be there since the callback is required to work for all 'gc lifetimes.
unsafe impl<R: for<'a> Rootable<'a> + ?Sized> Send for Arena<R> where Root<'static, R>: Send {}
unsafe impl<R: for<'a> Rootable<'a>> Send for Arena<R> where Root<'static, R>: Send {}

/// Create a temporary arena without a root object and perform the given operation on it. No garbage
/// collection will be done until the very end of the call, at which point all allocations will
Expand Down
2 changes: 1 addition & 1 deletion src/gc-arena/tests/ui/arena_not_send.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ error[E0277]: `Rc<()>` cannot be sent between threads safely
= help: the trait `Send` is not implemented for `Rc<()>`
= note: required for `Gc<'_, Rc<()>>` to implement `Send`
= note: 1 redundant requirement hidden
= note: required for `Arena<dyn for<'gc> Rootable<'gc, for<'gc> Root = Gc<'gc, Rc<()>>>>` to implement `Send`
= note: required for `Arena<__DynRootable<(dyn for<'gc> Rootable<'gc, for<'gc> Root = Gc<'gc, Rc<()>>> + 'static)>>` to implement `Send`
note: required by a bound in `assert_send`
--> tests/ui/arena_not_send.rs:5:19
|
Expand Down

0 comments on commit ba469bc

Please sign in to comment.