Skip to content

Many std iterators do not implement Send/Sync #22709

Closed
@huonw

Description

@huonw

Many iterators use * internally, for performance. This means they don't automatically implement Send or Sync, but many/most can.

Based on the regexp, \bIterator for, the following (non-compiler/non-test) files have Iterator implementations. We should look through them to find raw pointers etc. and ensure that they implement Send/Sync if there are such pointers. We can do it progressively, comment below if you feel like taking some files:

The &mut self of Iterator means that almost all iterators will be safe to implement Send and Sync.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-concurrencyArea: ConcurrencyE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions