mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
std: Add performance warnings to HashMap::get_disjoint_mut
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
This commit is contained in:
parent
ae8ab87de4
commit
fe03f76794
@ -973,6 +973,9 @@ where
|
||||
/// Returns an array of length `N` with the results of each query. For soundness, at most one
|
||||
/// mutable reference will be returned to any value. `None` will be used if the key is missing.
|
||||
///
|
||||
/// This method performs a check to ensure there are no duplicate keys, which has time-complexity O(n^2),
|
||||
/// so be careful when passing many keys.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// Panics if any keys are overlapping.
|
||||
|
Loading…
Reference in New Issue
Block a user