about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNikolai Vazquez <nvazquez1297@gmail.com>2017-09-21 16:35:23 -0400
committerNikolai Vazquez <nvazquez1297@gmail.com>2017-09-21 16:35:23 -0400
commit13221770a30d4bd56df9e8db6dc7fd95da56f8fc (patch)
tree0fd1f8eb232aa4b55204f7c3213c598db96a7914 /src/libsyntax/parse
parent1b55d19479eabcb5d6cbda651187c7004aa28f7f (diff)
downloadrust-13221770a30d4bd56df9e8db6dc7fd95da56f8fc.tar.gz
rust-13221770a30d4bd56df9e8db6dc7fd95da56f8fc.zip
Implement TryFrom for array reference types
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.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions