@@ -2390,34 +2390,34 @@ impl<T> SpecExtend<T, IntoIter<T>> for Vec<T> {
2390
2390
//
2391
2391
// # illustration of some extend scenarios (not exhaustive)
2392
2392
//
2393
- // = = step == == memory == == self == == iter / v ==
2394
- // 0123456789abcdef0123456789abcdef
2395
- // 0---------------1---------------
2393
+ // = step == == memory == == self == == iter / v ==
2394
+ // 0123456789abcdef0123456789abcdef
2395
+ // 0---------------1---------------
2396
2396
//
2397
2397
// ## non-empty self, partially consumed iterator
2398
2398
//
2399
- // [initial] AAAA_-----__BBB___-------------- Vec(0x00, 4, 5) IntoIter(0x0a, 0x0c, 0x0f, 8)
2400
- // ³ into_vec AAAA_-----____BBB_-------------- Vec(0x00, 4, 5) Vec(0x0a, 7, 8)
2401
- // ² prepend _____-----AAAABBB_-------------- Vec(0x00, 0, 5) Vec(0x0a, 7, 8)
2402
- // ⁴ *self = v ----------AAAABBB_-------------- Vec(0x0a, 7, 8)
2399
+ // [initial] AAAA_-----__BBB___-------------- Vec(0x00, 4, 5) IntoIter(0x0a, 0x0c, 0x0f, 8)
2400
+ // ³ into_vec AAAA_-----____BBB_-------------- Vec(0x00, 4, 5) Vec(0x0a, 7, 8)
2401
+ // ² prepend _____-----AAAABBB_-------------- Vec(0x00, 0, 5) Vec(0x0a, 7, 8)
2402
+ // ⁴ *self = v ----------AAAABBB_-------------- Vec(0x0a, 7, 8)
2403
2403
//
2404
2404
// ## empty self, partially consumed iterator
2405
2405
//
2406
- // [initial] ____------__BBBB__-------------- Vec(0x00, 0, 4) IntoIter(0x0a, 0x0c, 0x10, 8)
2407
- // ³ into_vec ____------BBBB____-------------- Vec(0x00, 0, 4) Vec(0x0a, 4, 8)
2408
- // ⁴ *self = v ----------BBBB____-------------- Vec(0x0a, 4, 8)
2406
+ // [initial] ____------__BBBB__-------------- Vec(0x00, 0, 4) IntoIter(0x0a, 0x0c, 0x10, 8)
2407
+ // ³ into_vec ____------BBBB____-------------- Vec(0x00, 0, 4) Vec(0x0a, 4, 8)
2408
+ // ⁴ *self = v ----------BBBB____-------------- Vec(0x0a, 4, 8)
2409
2409
//
2410
2410
// ## empty self, pristine iterator
2411
2411
//
2412
- // [initial] ----------BBBB____-------------- Vec(0x00, 0, 0) IntoIter(0x0a, 0x0a, 0x0e, 8)
2413
- // *self = v ----------BBBB____-------------- Vec(0x0a, 4, 8)
2412
+ // [initial] ----------BBBB____-------------- Vec(0x00, 0, 0) IntoIter(0x0a, 0x0a, 0x0e, 8)
2413
+ // *self = v ----------BBBB____-------------- Vec(0x0a, 4, 8)
2414
2414
//
2415
2415
// ## insufficient capacity
2416
2416
//
2417
- // [initial] AAAAA-----BBBBBB__-------------- Vec(0x00, 5, 5) IntoIter(0x0a, 0x0a, 0x0f, 8)
2418
- // ¹² reserve(6) ----------BBBBBB__--AAAAA______- Vec(0x14, 5, 11) IntoIter(0x0a, 0x0a, 0x0f, 8)
2419
- // ² ptr:copy_n ----------________--AAAAABBBBBB- Vec(0x14, 11, 11) IntoIter(0x0a, 0x0f, 0x0f, 8)
2420
- // ⁴ drop --------------------AAAAABBBBBB- Vec(0x14, 11, 11)
2417
+ // [initial] AAAAA-----BBBBBB__-------------- Vec(0x00, 5, 5) IntoIter(0x0a, 0x0a, 0x0f, 8)
2418
+ // ¹²⁴ reserve(6) ----------BBBBBB__--AAAAA______- Vec(0x14, 5, 11) IntoIter(0x0a, 0x0a, 0x0f, 8)
2419
+ // ² ptr:copy_n ----------________--AAAAABBBBBB- Vec(0x14, 11, 11) IntoIter(0x0a, 0x0f, 0x0f, 8)
2420
+ // ⁴ drop --------------------AAAAABBBBBB- Vec(0x14, 11, 11)
2421
2421
//
2422
2422
// ¹ malloc
2423
2423
// ² memcpy
0 commit comments