Commit 774d082
authored
Unrolled build for #148662
Rollup merge of #148662 - leftmostcat:document-isize-limit, r=joboet
alloc: Document panics when allocations will exceed max
Document panics in `String` and `Vec` due to capacity overflowing `isize::MAX`. Correct outdated claims of `usize::MAX` limit.
Fixes #148598.
Ping `@lolbinarycat`2 files changed
+24
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
457 | 461 | | |
458 | 462 | | |
459 | 463 | | |
| |||
1079 | 1083 | | |
1080 | 1084 | | |
1081 | 1085 | | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1082 | 1090 | | |
1083 | 1091 | | |
1084 | 1092 | | |
| |||
1101 | 1109 | | |
1102 | 1110 | | |
1103 | 1111 | | |
1104 | | - | |
1105 | | - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1106 | 1115 | | |
1107 | 1116 | | |
1108 | 1117 | | |
| |||
1158 | 1167 | | |
1159 | 1168 | | |
1160 | 1169 | | |
1161 | | - | |
| 1170 | + | |
1162 | 1171 | | |
1163 | 1172 | | |
1164 | 1173 | | |
| |||
1208 | 1217 | | |
1209 | 1218 | | |
1210 | 1219 | | |
1211 | | - | |
| 1220 | + | |
1212 | 1221 | | |
1213 | 1222 | | |
1214 | 1223 | | |
| |||
1372 | 1381 | | |
1373 | 1382 | | |
1374 | 1383 | | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1375 | 1388 | | |
1376 | 1389 | | |
1377 | 1390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3340 | 3340 | | |
3341 | 3341 | | |
3342 | 3342 | | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
3343 | 3347 | | |
3344 | 3348 | | |
3345 | 3349 | | |
| |||
3361 | 3365 | | |
3362 | 3366 | | |
3363 | 3367 | | |
3364 | | - | |
3365 | | - | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
3366 | 3371 | | |
3367 | 3372 | | |
3368 | 3373 | | |
| |||
0 commit comments