@@ -1882,18 +1882,18 @@ impl<T> VecDeque<T> {
18821882 // Values are not copied one by one but as slices in `copy_whole_slice`.
18831883 // What slices are used depends on various properties of src and dst.
18841884 // 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
18891889 // + 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
18911891 // + 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
18931893 // + dst_high is the same size as src_high
18941894 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 ) {
18971897 ( true , true ) => {
18981898 // 1.
18991899 // other [. . . o o o . . . . . .]
0 commit comments