Commit 1c9c2b1
committed
Make verify_into_array actually exercise Box::into_array
The previous body called b.try_into(), which goes through the
TryFrom<Box<[T]>> for Box<[T;N]> impl (which uses
boxed_slice_as_array_unchecked, not into_array). The TryFrom path is
already covered separately by verify_try_from_slice_to_array.
Now the harness calls b.into_array() directly and asserts on the
recovered array contents, providing direct coverage of the
Box::<[T]>::into_array spec function (Challenge 29).1 parent 9eeed4c commit 1c9c2b1
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2305 | 2305 | | |
2306 | 2306 | | |
2307 | 2307 | | |
2308 | | - | |
2309 | | - | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
2310 | 2312 | | |
2311 | 2313 | | |
2312 | 2314 | | |
| |||
0 commit comments