1- error: this `reserve` no longer makes sense in rustc version >= 1.62
1+ error: unnecessary call to `reserve`
22 --> $DIR/unnecessary_reserve.rs:20:5
33 |
44LL | vec.reserve(1);
@@ -8,39 +8,39 @@ LL | vec.extend([1]);
88 |
99 = note: `-D clippy::unnecessary-reserve` implied by `-D warnings`
1010
11- error: this `reserve` no longer makes sense in rustc version >= 1.62
11+ error: unnecessary call to `reserve`
1212 --> $DIR/unnecessary_reserve.rs:24:5
1313 |
1414LL | vec.reserve(array.len());
1515 | ------------------------ help: remove this line
1616LL | vec.extend(array);
1717 | ^^^^^^^^^^^^^^^^^^
1818
19- error: this `reserve` no longer makes sense in rustc version >= 1.62
19+ error: unnecessary call to `reserve`
2020 --> $DIR/unnecessary_reserve.rs:29:9
2121 |
2222LL | vec.reserve(1);
2323 | -------------- help: remove this line
2424LL | vec.extend([1])
2525 | ^^^^^^^^^^^^^^^
2626
27- error: this `reserve` no longer makes sense in rustc version >= 1.62
27+ error: unnecessary call to `reserve`
2828 --> $DIR/unnecessary_reserve.rs:49:5
2929 |
3030LL | vec_deque.reserve(1);
3131 | -------------------- help: remove this line
3232LL | vec_deque.extend([1]);
3333 | ^^^^^^^^^^^^^^^^^^^^^^
3434
35- error: this `reserve` no longer makes sense in rustc version >= 1.62
35+ error: unnecessary call to `reserve`
3636 --> $DIR/unnecessary_reserve.rs:53:5
3737 |
3838LL | vec_deque.reserve(array.len());
3939 | ------------------------------ help: remove this line
4040LL | vec_deque.extend(array);
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^
4242
43- error: this `reserve` no longer makes sense in rustc version >= 1.62
43+ error: unnecessary call to `reserve`
4444 --> $DIR/unnecessary_reserve.rs:58:9
4545 |
4646LL | vec_deque.reserve(1);
0 commit comments