mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
9c63e94ef7
Fix doc typo in Vec::into_array and convert Arc/Box/Rc::into_arry to -> Result Hello 🪼, the first commit fixes a documentation mistake added in the recent PR rust-lang/rust#156234 The second commit addresses three function signature changes as defined by the tracking issue rust-lang/rust#148082 It converts all `.into_array() -> Option<>` into `.into_array() -> Result<>` The third commit is a fixup for the second. The change is needed as calling `unwrap()` on `Err(E)` requires `E` to implement `Debug`. I thought `Vec<T, A> where T: Debug` is not an acceptable solution, so I tried to come up with my own. I am *NOT* confident in my `unsafe {}` code due to lack of expierence, please check extra carefully. Appreciating feedback & greetings from the RustWeek, Thanks!