Skip to content

Commit 22918a5

Browse files
committed
fix fromStringImpl
1 parent 1b3022e commit 22918a5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

source/mir/bignum/decimal.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ struct Decimal(size_t maxSize64)
228228
bool checkEmpty = true,
229229
)
230230
(scope const(C)[] str, out DecimalExponentKey key, int exponentShift = 0)
231-
@safe pure @nogc nothrow
231+
scope @trusted pure @nogc nothrow
232232
if (isSomeChar!C)
233233
{
234234
enum optimize = size_t.sizeof == 8 && maxSize64 == 1;

source/mir/bignum/fixed.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct UInt(size_t size)
123123
Precondition: non-empty coefficients.
124124
+/
125125
bool fromStringImpl(C)(scope const(C)[] str)
126-
@safe pure @nogc nothrow
126+
scope @trusted pure @nogc nothrow
127127
if (isSomeChar!C)
128128
{
129129
import mir.bignum.low_level_view: BigUIntView;

source/mir/bignum/integer.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ struct BigInt(size_t maxSize64)
136136
Precondition: non-empty coefficients.
137137
+/
138138
bool fromStringImpl(C)(scope const(C)[] str)
139-
@safe pure @nogc nothrow
139+
scope @trusted pure @nogc nothrow
140140
if (isSomeChar!C)
141141
{
142142
auto work = BigIntView!size_t(data[]);

source/mir/bignum/low_level_view.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ struct BigUIntView(W, WordEndian endian = TargetEndian)
729729
Note: doesn't support signs.
730730
+/
731731
bool fromStringImpl(C)(scope const(C)[] str)
732-
@safe pure @nogc nothrow
732+
scope @trusted pure @nogc nothrow
733733
if (isSomeChar!C)
734734
{
735735
import mir.utility: _expect;
@@ -1433,7 +1433,7 @@ struct BigIntView(W, WordEndian endian = TargetEndian)
14331433
Precondition: non-empty coefficients.
14341434
+/
14351435
bool fromStringImpl(C)(scope const(C)[] str)
1436-
@safe pure @nogc nothrow
1436+
scope @trusted pure @nogc nothrow
14371437
if (isSomeChar!C)
14381438
{
14391439
import mir.utility: _expect;
@@ -2219,7 +2219,7 @@ struct DecimalView(W, WordEndian endian = TargetEndian, Exp = sizediff_t)
22192219
bool checkEmpty = true,
22202220
)
22212221
(scope const(C)[] str, out DecimalExponentKey key, int exponentShift = 0)
2222-
@safe pure @nogc nothrow
2222+
scope @trusted pure @nogc nothrow
22232223
if (isSomeChar!C)
22242224
{
22252225
import mir.utility: _expect;

0 commit comments

Comments
 (0)