bors f3b900cc3b Auto merge of #44764 - nvzqz:master, r=alexcrichton
Implement TryFrom<&[T]> for &[T; N]

There are many cases where a buffer with a static compile-time size is preferred over a slice with a dynamic size. This allows for performing a checked conversion from `&[T]` to `&[T; N]`. This may also lead to compile-time optimizations involving `[T; N]` such as loop unrolling.

This is my first PR to Rust, so I'm not sure if discussion of this change should happen here or does it need its own RFC? I figured these changes would be a subset of #33417.
2017-10-31 23:06:37 +00:00
..
2017-10-26 13:59:18 -07:00
2017-10-26 13:59:18 -07:00
2017-10-02 22:04:23 -03:00
2017-10-26 13:59:18 -07:00
2017-10-26 13:59:18 -07:00
2017-07-25 07:09:31 -07:00
2017-08-31 06:58:58 -07:00
2017-09-21 15:46:17 -04:00
2017-10-26 13:59:18 -07:00
2017-10-22 13:14:17 -04:00
2017-09-28 01:30:25 -07:00
2017-10-26 13:59:18 -07:00
2017-10-26 13:59:18 -07:00
2017-09-27 17:57:07 -04:00
2017-07-25 07:03:19 -07:00
2017-08-31 06:58:58 -07:00