This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 3e68b97
authored
Unrolled build for rust-lang#120110
Rollup merge of rust-lang#120110 - invpt:patch-1, r=the8472
Update documentation for Vec::into_boxed_slice to be more clear about excess capacity
Currently, the documentation for Vec::into_boxed_slice says that "if the vector has excess capacity, its items will be moved into a newly-allocated buffer with exactly the right capacity." This is misleading, as copies do not necessarily occur, depending on if the allocator supports in-place shrinking. I copied some of the wording from shrink_to_fit, though it could potentially still be worded better than this.1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
1026 | | - | |
1027 | | - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1028 | 1031 | | |
1029 | 1032 | | |
1030 | 1033 | | |
| |||
1074 | 1077 | | |
1075 | 1078 | | |
1076 | 1079 | | |
1077 | | - | |
1078 | | - | |
| 1080 | + | |
1079 | 1081 | | |
1080 | 1082 | | |
| 1083 | + | |
1081 | 1084 | | |
1082 | 1085 | | |
1083 | 1086 | | |
| |||
3290 | 3293 | | |
3291 | 3294 | | |
3292 | 3295 | | |
3293 | | - | |
3294 | | - | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
3295 | 3300 | | |
3296 | 3301 | | |
3297 | 3302 | | |
| |||
0 commit comments