File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1596,9 +1596,9 @@ impl<A: Allocator + Clone> RawTableInner<A> {
1596
1596
/// width, or return an index outside of the table indices range if the table is less
1597
1597
/// than the group width.
1598
1598
///
1599
- /// # Safety
1599
+ /// # Note
1600
1600
///
1601
- /// Actually, calling this function is always safe, but attempting to write data at
1601
+ /// Calling this function is always safe, but attempting to write data at
1602
1602
/// the index returned by this function when the table is less than the group width
1603
1603
/// and if there was not at least one empty bucket in the table will cause immediate
1604
1604
/// [`undefined behavior`]. This is because in this case the function will return
@@ -1607,7 +1607,7 @@ impl<A: Allocator + Clone> RawTableInner<A> {
1607
1607
///
1608
1608
/// [`undefined behavior`]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
1609
1609
#[ inline]
1610
- unsafe fn find_insert_slot ( & self , hash : u64 ) -> usize {
1610
+ fn find_insert_slot ( & self , hash : u64 ) -> usize {
1611
1611
let mut probe_seq = self . probe_seq ( hash) ;
1612
1612
loop {
1613
1613
// SAFETY:
You can’t perform that action at this time.
0 commit comments