Skip to content

Commit 8c0b991

Browse files
committed
move mir.exception to core
1 parent 0965ada commit 8c0b991

6 files changed

Lines changed: 4 additions & 311 deletions

File tree

index.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ $(BOOKTABLE ,
1313
$(LEADINGROW Accessories)
1414
$(TR $(TDNW $(MREF mir,algebraic_alias,json)) $(TD Mutable JSON value))
1515
$(TR $(TDNW $(MREF mir,array,allocation)) $(TD `std.array` reworked for Mir))
16-
$(TR $(TDNW $(MREF mir,exception)) $(TD @nogc MirException with formatting))
1716
$(TR $(TDNW $(MREF mir,format)) $(TD @nogc Formatting Utilities))
1817
$(TR $(TDNW $(MREF mir,parse)) $(TD @nogc Parsing Utilities))
1918
$(TR $(TDNW $(MREF mir,range)) $(TD Ranges))

meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ sources_list = [
2424
'mir/container/binaryheap',
2525
'mir/cpp_export/numeric',
2626
'mir/date',
27-
'mir/exception',
2827
'mir/format_impl',
2928
'mir/format',
3029
'mir/graph/package',

source/mir/bignum/decimal.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ struct Decimal(size_t maxSize64)
324324
recentUnderscore = false;
325325
}
326326
{
327-
import core.checkedint: addu, mulu;
327+
import mir.checkedint: mulu;
328328
bool overflow;
329329
v = mulu(v, cast(uint)10, overflow);
330330
if (overflow)

source/mir/date.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Authors: $(HTTP jmdavisprog.com, Jonathan M Davis), Ilya Yaroshenko (boost-like
2929
+/
3030
module mir.date;
3131

32-
import mir.timestamp: Timestamp;
3332
import mir.serde: serdeProxy, serdeScoped;
33+
import mir.timestamp: Timestamp;
3434
import std.range.primitives : isOutputRange;
3535
import std.traits : isSomeChar, Unqual;
3636

@@ -551,7 +551,7 @@ public:
551551
}
552552

553553
///
554-
Timestamp timestamp() @safe pure nothrow @nogc @property
554+
Timestamp timestamp() @safe pure nothrow @nogc const @property
555555
{
556556
return yearMonthDay.timestamp;
557557
}

source/mir/exception.d

Lines changed: 0 additions & 305 deletions
This file was deleted.

source/mir/parse.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private bool parseUnsignedImpl(T, Range)(scope ref Range r, scope ref T value)
319319
if(__traits(isUnsigned, T))
320320
{
321321
version(LDC) pragma(inline, true);
322-
import core.checkedint: addu, mulu;
322+
import mir.checkedint: addu, mulu;
323323

324324
bool sign;
325325
B:

0 commit comments

Comments
 (0)