Commit a1ddb18
committed
Resolve new dead_code warnings in test suite
Bisects to rust-lang/rust#141407.
warning: struct `Struct` is never constructed
--> test_suite/tests/test_gen.rs:803:16
|
803 | pub struct Struct {
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: function `vec_first_element` is never used
--> test_suite/tests/test_gen.rs:885:4
|
885 | fn vec_first_element<T, S>(vec: &[T], serializer: S) -> StdResult<S::Ok, S::Error>
| ^^^^^^^^^^^^^^^^^
warning: struct `S` is never constructed
--> test_suite/tests/regression/issue2415.rs:5:12
|
5 | pub struct S;
| ^
|
= note: `#[warn(dead_code)]` on by default1 parent da3998a commit a1ddb18
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
| 808 | + | |
| 809 | + | |
808 | 810 | | |
809 | 811 | | |
810 | 812 | | |
| |||
0 commit comments