about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-13 12:43:12 +0000
committerbors <bors@rust-lang.org>2020-08-13 12:43:12 +0000
commita0c290f951076d781b0ff08370445517446cee05 (patch)
tree19eb1d8ba7b30c480dddd4a86dcb3e8de42f5b91 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent1a7d9f52bc3545631c7485dce65b31742ef81c4d (diff)
parentaf32db21c8e1b1970886eb64b9955f9590e4c445 (diff)
downloadrust-a0c290f951076d781b0ff08370445517446cee05.tar.gz
rust-a0c290f951076d781b0ff08370445517446cee05.zip
Auto merge of #75212 - JulianKnodt:array_map, r=LukasKalbertodt
Add `array` lang item and `[T; N]::map(f: FnMut(T) -> S)`

This introduces an `array` lang item so functions can be defined on top of `[T; N]`. This was previously not done because const-generics was not complete enough to allow for this. Now it is in a state that is usable enough to start adding functions.

The function added is a monadic (I think?) map from `[T; N] -> [S; N]`. Until transmute can function on arrays, it also allocates an extra temporary array, but this can be removed at some point.

r? @lcnr
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions