Commit 0928511
committed
Auto merge of rust-lang#58623 - Amanieu:hashbrown3, r=alexcrichton
Replace HashMap implementation with SwissTable (as an external crate)
This is the same as rust-lang#56241 except that it imports `hashbrown` as an external crate instead of copying the implementation into libstd.
This includes a few API changes (all unstable):
- `try_reserve` is added to `HashSet`.
- Some trait bounds have been changed in the `raw_entry` API.
- `search_bucket` has been removed from the `raw_entry` API (doesn't work with SwissTable).File tree
10 files changed
+521
-2398
lines changed- src
- libstd
- collections/hash
- test/ui/issues
- tools/rustc-std-workspace-alloc
10 files changed
+521
-2398
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1069 | 1079 | | |
1070 | 1080 | | |
1071 | 1081 | | |
| |||
2529 | 2539 | | |
2530 | 2540 | | |
2531 | 2541 | | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2532 | 2549 | | |
2533 | 2550 | | |
2534 | 2551 | | |
| |||
3260 | 3277 | | |
3261 | 3278 | | |
3262 | 3279 | | |
| 3280 | + | |
3263 | 3281 | | |
3264 | 3282 | | |
3265 | 3283 | | |
| |||
4103 | 4121 | | |
4104 | 4122 | | |
4105 | 4123 | | |
| 4124 | + | |
4106 | 4125 | | |
4107 | 4126 | | |
4108 | 4127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments