libphobos: Merge upstream phobos bf0d0a37c
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 19 Apr 2020 16:02:17 +0000 (18:02 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 19 Apr 2020 16:14:30 +0000 (18:14 +0200)
commit3f81d84c9ff84f057628de58ebd009112f9d46f9
tree52ec38d4755d0a806b5bd4def56e4a8c7fc8fcce
parentfc186077486fb6e5453157ad8507c66d0a34017c
libphobos: Merge upstream phobos bf0d0a37c

std.array.Appender and RefAppender: use .opSlice() instead of data()

Previously, Appender.data() was used to extract a slice of the Appender's array.
Now use the [] slice operator instead.  The same goes for RefAppender.

Fixes: PR d/94455
Reviewed-on: https://github.com/dlang/phobos/pull/7450
libphobos/src/MERGE
libphobos/src/std/array.d