Skip to content

Commit 42c6bcf

Browse files
committed
fix test
1 parent d0d8a77 commit 42c6bcf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/ui/unnecessary_reserve.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
|
44
LL | 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
|
1414
LL | vec.reserve(array.len());
1515
| ------------------------ help: remove this line
1616
LL | 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
|
2222
LL | vec.reserve(1);
2323
| -------------- help: remove this line
2424
LL | 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
|
3030
LL | vec_deque.reserve(1);
3131
| -------------------- help: remove this line
3232
LL | 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
|
3838
LL | vec_deque.reserve(array.len());
3939
| ------------------------------ help: remove this line
4040
LL | 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
|
4646
LL | vec_deque.reserve(1);

0 commit comments

Comments
 (0)