rust/src/libcore/tests
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
..
fmt Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
hash Implement Hash for raw pointers to unsized types 2017-10-25 11:07:13 -07:00
num address more FIXME whose associated issues were marked as closed 2017-10-08 00:27:28 +03:00
any.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
array.rs Try to fix array TryFrom tests 2017-09-24 14:54:04 -04:00
atomic.rs Optimize AtomicBool::fetch_nand 2017-04-07 17:36:50 +02:00
cell.rs Implement RefCell::replace and RefCell::swap 2017-07-31 21:19:09 +00:00
char.rs Remove test case that assumes FromStr provides TryFrom<&'a str>. 2017-08-30 04:43:09 -07:00
clone.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
cmp.rs Add max and min default fns to Ord trait 2017-06-06 22:42:48 -04:00
intrinsics.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
iter.rs Auto merge of #44856 - cuviper:more-fold, r=dtolnay 2017-09-29 12:56:24 +00:00
lib.rs Auto merge of #42526 - huntiep:try_opt, r=nikomatsakis 2017-09-29 20:09:35 +00:00
mem.rs core: Ensure std::mem::Discriminant is Send + Sync 2017-10-08 01:09:55 +02:00
nonzero.rs Rename {NonZero,Shared,Unique}::new to new_unchecked 2017-07-22 20:38:16 +02:00
ops.rs Return a correct size_hint for degenerate inclusive ranges 2017-05-21 05:03:49 -07:00
option.rs Rename option::Missing to NoneError 2017-09-27 17:57:07 -04:00
ptr.rs Rename {NonZero,Shared,Unique}::new to new_unchecked 2017-07-22 20:38:16 +02:00
result.rs Rename option::Missing to NoneError 2017-09-27 17:57:07 -04:00
slice.rs Fixed errors in libstd. 2017-08-02 15:16:20 +01:00
str.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
tuple.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00