Commit 83e75ac
authored
Rollup merge of rust-lang#75195 - ssomers:btree_split_up_into_kv_mut, r=Mark-Simulacrum
BTreeMap: purge innocent use of into_kv_mut
Replace the use of `into_kv_mut` into more precise calls. This makes more sense if you know that the single remaining use of `into_kv_mut` is in fact evil and can be trialled in court (rust-lang#75200) and sent to a correction facility (rust-lang#73971).
No real performance difference reported (but functions that might benefit a tiny constant bit like `BTreeMap::get_mut` aren't benchmarked):
```
benchcmp old new --threshold 5
name old ns/iter new ns/iter diff ns/iter diff % speedup
btree::map::clone_fat_100 63,073 59,256 -3,817 -6.05% x 1.06
btree::map::iter_100 3,514 3,235 -279 -7.94% x 1.09
```2 files changed
+19
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
| 814 | + | |
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| |||
2748 | 2748 | | |
2749 | 2749 | | |
2750 | 2750 | | |
2751 | | - | |
| 2751 | + | |
2752 | 2752 | | |
2753 | 2753 | | |
2754 | 2754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1070 | 1080 | | |
1071 | 1081 | | |
1072 | 1082 | | |
| |||
1261 | 1271 | | |
1262 | 1272 | | |
1263 | 1273 | | |
1264 | | - | |
1265 | | - | |
| 1274 | + | |
| 1275 | + | |
1266 | 1276 | | |
1267 | 1277 | | |
1268 | 1278 | | |
| |||
1278 | 1288 | | |
1279 | 1289 | | |
1280 | 1290 | | |
1281 | | - | |
1282 | | - | |
| 1291 | + | |
| 1292 | + | |
1283 | 1293 | | |
1284 | 1294 | | |
1285 | 1295 | | |
| |||
1307 | 1317 | | |
1308 | 1318 | | |
1309 | 1319 | | |
1310 | | - | |
| 1320 | + | |
1311 | 1321 | | |
1312 | 1322 | | |
1313 | 1323 | | |
| |||
1364 | 1374 | | |
1365 | 1375 | | |
1366 | 1376 | | |
1367 | | - | |
| 1377 | + | |
1368 | 1378 | | |
1369 | 1379 | | |
1370 | 1380 | | |
| |||
0 commit comments