Skip to content

Commit 611daf0

Browse files
committed
Remove old note
1 parent 78787e6 commit 611daf0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/map.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,16 +1853,6 @@ impl<'a, K, V, S> OccupiedEntry<'a, K, V, S> {
18531853
self.remove_entry().1
18541854
}
18551855

1856-
// NOTE:
1857-
// replace_entry and replace_key are _not_ okay, because it may move a bucket in the old
1858-
// table to _before_ where the "move keys iterator" is currently pointed. in which case we'd
1859-
// fail to move them.
1860-
//
1861-
// it should be possible to work around this by checking if that's the case, and then
1862-
// restarting the iterator, though that would come at a performance penalty...
1863-
//
1864-
// when implemented, remove the #[allow(dead_code)] on OccupiedEntry::key
1865-
18661856
/// Replaces the entry, returning the old key and value. The new key in the hash map will be
18671857
/// the key used to create this entry.
18681858
///

0 commit comments

Comments
 (0)