Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime

The emplace() stuff was moved to druntime; for some reason, it's still
in Phobos.

I've diffed the two versions, and they are still almost identical (incl.
unittests); the druntime version appears to have seen some improvements
(e.g., forwarding r/lvalueness of the arguments) in the meantime.
This commit is contained in:
Martin Kinkelin 2021-01-17 16:02:21 +01:00
parent e2f756866c
commit 1a459c5996
18 changed files with 48 additions and 1293 deletions

View file

@ -3052,7 +3052,7 @@ schwartzSort(alias transform, alias less = "a < b",
if (isRandomAccessRange!R && hasLength!R && hasSwappableElements!R &&
!is(typeof(binaryFun!less) == SwapStrategy))
{
import std.conv : emplace;
import core.lifetime : emplace;
import std.range : zip, SortedRange;
import std.string : representation;