Skip to content

Detect and fail when hashmap is modified during iteration #2050

Closed
@nikomatsakis

Description

@nikomatsakis

Related to #2049, I think we ought to detect attempts to modify hashmaps and other mutable data structures during iteration and fail fast. This should be relatively easy to do thanks to the use of methods to define when iteration is occurring. We can also allow certain kinds of modifications (for example, only the current key) if desired.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions