Commit db3a197
committed
Make Arc verification harnesses exercise their named functions
verify_into_array previously called a.try_into(), which goes through
the TryFrom impl, not Arc::into_array. The TryFrom path is already
covered by verify_try_from. Rewrite verify_into_array to call
a.into_array() directly.
Add verify_into_inner_with_allocator (none existed before): call
Arc::into_inner_with_allocator(a) and reconstruct via from_inner_in
(matching how the TryFrom impl uses the helper).
Both functions are listed in the Challenge 27 (Arc) success criteria.1 parent 24aff31 commit db3a197
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4769 | 4769 | | |
4770 | 4770 | | |
4771 | 4771 | | |
4772 | | - | |
4773 | | - | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
4774 | 4785 | | |
4775 | 4786 | | |
4776 | 4787 | | |
| |||
0 commit comments