@@ -1882,18 +1882,18 @@ impl<T> VecDeque<T> {
1882
1882
// Values are not copied one by one but as slices in `copy_whole_slice`.
1883
1883
// What slices are used depends on various properties of src and dst.
1884
1884
// There are 6 cases in total:
1885
- // 1. `src` and `dst` are contiguous
1886
- // 2. `src` is contiguous and `dst` is discontiguous
1887
- // 3. `src` is discontiguous and `dst` is contiguous
1888
- // 4. `src` and `dst` are discontiguous
1885
+ // 1. `src` is contiguous and fits in dst_high
1886
+ // 2. `src` is contiguous and does not fit in dst_high
1887
+ // 3. `src` is discontiguous and fits in dst_high
1888
+ // 4. `src` is discontiguous and does not fit in dst_high
1889
1889
// + src_high is smaller than dst_high
1890
- // 5. `src` and `dst` are discontiguous
1890
+ // 5. `src` is discontiguous and does not fit in dst_high
1891
1891
// + dst_high is smaller than src_high
1892
- // 6. `src` and `dst` are discontiguous
1892
+ // 6. `src` is discontiguous and does not fit in dst_high
1893
1893
// + dst_high is the same size as src_high
1894
1894
let src_contiguous = src_low. is_empty ( ) ;
1895
- let dst_contiguous = dst_high. len ( ) >= src_total;
1896
- match ( src_contiguous, dst_contiguous ) {
1895
+ let dst_high_fits_src = dst_high. len ( ) >= src_total;
1896
+ match ( src_contiguous, dst_high_fits_src ) {
1897
1897
( true , true ) => {
1898
1898
// 1.
1899
1899
// other [. . . o o o . . . . . .]
0 commit comments