std: Add performance warnings to HashMap::get_disjoint_mut

Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
This commit is contained in:
xizheyin 2025-04-03 16:19:46 +08:00
parent ae8ab87de4
commit fe03f76794
No known key found for this signature in database
GPG Key ID: 0A0D90BE99CEDEAD

View File

@ -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.