about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-19 18:47:04 +0000
committerbors <bors@rust-lang.org>2024-06-19 18:47:04 +0000
commitd8a38b00024cd7156dea4ce8fd8ae113a2745e7f (patch)
tree65488475893e72510938de6224e4e34dbf88d946 /compiler/rustc_errors/src
parent5c8459f1eceba84dff8d622768dae556ea7c2495 (diff)
parent0aa3310a9ac22509f138566398c2e65a777f5967 (diff)
downloadrust-d8a38b00024cd7156dea4ce8fd8ae113a2745e7f.tar.gz
rust-d8a38b00024cd7156dea4ce8fd8ae113a2745e7f.zip
Auto merge of #119127 - joboet:array_repeat, r=scottmcm
Implement `array::repeat`

See rust-lang/libs-team#310.

I've decided to make the function use the input value as last element instead of cloning it to every position and dropping it, and to make this part of the API so that callers are not surprised by this behaviour.

TODO: open a tracking issue. I'll wait for the ACP to be accepted, first.

`@rustbot` label +T-libs-api +T-libs
r? libs
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions