Commit 26f725b
committed
Make
For performance reasons, this method _assumes_ that there is sufficient
capacity for the new element, and it misbehaves otherwise, breaking
invariants or even segfaulting. The necessary conditions could be
checked, but if we're to keep it lean, it should be `unsafe`, so the
burden is on the caller to ensure capacity.
Fixes #253.RawTable::insert_no_grow unsafe1 parent bbb5d3b commit 26f725b
2 files changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
879 | 878 | | |
880 | | - | |
881 | | - | |
882 | | - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
883 | 882 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
888 | 886 | | |
889 | 887 | | |
890 | 888 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
578 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
| |||
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
599 | | - | |
| 601 | + | |
600 | 602 | | |
601 | 603 | | |
602 | 604 | | |
| |||
0 commit comments