We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assumeUnique
1 parent 3c74c2b commit 17b1a11Copy full SHA for 17b1a11
std/path.d
@@ -1758,7 +1758,6 @@ immutable(C)[] buildNormalizedPath(C)(const(C[])[] paths...)
1758
if (isSomeChar!C)
1759
{
1760
import std.array : array;
1761
- import std.exception : assumeUnique;
1762
1763
const(C)[] chained;
1764
foreach (path; paths)
@@ -1770,7 +1769,7 @@ if (isSomeChar!C)
1770
1769
}
1771
auto result = asNormalizedPath(chained);
1772
// .array returns a copy, so it is unique
1773
- return () @trusted { return assumeUnique(result.array); } ();
+ return result.array;
1774
1775
1776
///
0 commit comments