about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-12-01 01:05:54 +0800
committerkennytm <kennytm@gmail.com>2018-12-01 01:53:15 +0800
commitf7c407eb8bc9413d9d1449eeda9710715ad255a2 (patch)
tree542ce91523921e3eea5c57a0606b342a29c33e10 /src/test/incremental/thinlto
parentc3950c84c0ce89d6aad6f95042836912ce3ff3dc (diff)
parent057e6d3a35a54e8b88c2cef1e6a1b9e590066276 (diff)
downloadrust-f7c407eb8bc9413d9d1449eeda9710715ad255a2.tar.gz
rust-f7c407eb8bc9413d9d1449eeda9710715ad255a2.zip
Rollup merge of #56216 - SimonSapin:array-tryfrom-slice, r=withoutboats
Add TryFrom<&[T]> for [T; $N] where T: Copy

`TryFrom<&[T]> for &[T; $N]` (note *reference* to an array) already exists, but not needing to dereference makes type inference easier for example when using `u32::from_be_bytes`.

Also add doc examples doing just that.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions