Skip to content

Inconsistent warning on get_disjoint_mut #139296

Closed
@zirconium-n

Description

@zirconium-n

Location

slice::get_disjoint_mut got a warning about O(n^2) check for overlapping indices, but HashMap::get_disjoint_mut does not.

Summary

I think we should add this warning to HashMap::get_disjoint_mut as well.

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions