Skip to content

Send is not implemented for RingBuf<T> where T: Send. #20337

Description

@dradtke

My guess is that this is just an oversight from some of the recent changes. I found these two lines in the source file for Vec, which seem to fit with the recent change to make Send opt-in:

unsafeimpl<T:Send>SendforVec<T>{}unsafeimpl<T:Sync>SyncforVec<T>{}

But no such impl statement exists in the source file for RingBuf. Considering how similar the struct definitions are for these collections, I assume there's no reason it couldn't be implemented for RingBuf as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions