Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of deprecation messages, mostly about void initializers in @safe #472

Open
jmh530 opened this issue Nov 28, 2024 · 0 comments
Open

Comments

@jmh530
Copy link
Contributor

jmh530 commented Nov 28, 2024

Just ran dub test with D 2.109.1

C:\Users\[user]\Documents\GitHub\mir-algorithm>dub test
Generating test runner configuration 'mir-algorithm-test-default' for 'default' (library).
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Performing "unittest" build using dmd for x86_64.
mir-core 1.7.1: building configuration "library"...
mir-algorithm 3.22.1: building configuration "mir-algorithm-test-default"...
Mir warning: can't compute hash. Expexted `size_t toHash() scope @safe const pure nothrow @nogc` method for Algebraic!(Ion_)
source\mir\bignum\decimal.d(458,17): Deprecation: `void` initializers for types with unsafe bit patterns are not allowed in safe functions
source\mir\bignum\decimal.d(503,12): Deprecation: `@safe` function `__unittest_L498_C43` calling `opBinary`
source\mir\format.d(204,16):        which calls `mir.format.print!(char, StringBuf!(char, 256u), double).print`
source\mir\format.d(953,21):        which calls `mir.bignum.decimal.Decimal!1u.Decimal.toString!(char, StringBuf!(char, 256u)).toString`
source\mir\bignum\decimal.d(75,31):        which wouldn't be `@safe` because of:
source\mir\bignum\decimal.d(75,31):        `void` initializers for types with unsafe bit patterns are not allowed in safe functions
source\mir\bignum\decimal.d(429,50): Deprecation: `void` initializers for types with unsafe bit patterns are not allowed in safe functions
source\mir\bignum\integer.d(268,16): Deprecation: `void` initializers for types with unsafe bit patterns are not allowed in safe functions
source\mir\bignum\decimal.d(505,12): Deprecation: `@safe` function `__unittest_L498_C43` calling `opBinary`
source\mir\format.d(197,16):        which calls `mir.format.print!(char, StringBuf!(char, 256u), Decimal!1u).print`
source\mir\format.d(1050,25):        which calls `mir.bignum.decimal.Decimal!1u.Decimal.toString!(char, StringBuf!(char, 256u)).toString`
source\mir\bignum\decimal.d(75,31):        which wouldn't be `@safe` because of:
source\mir\bignum\decimal.d(75,31):        `void` initializers for types with unsafe bit patterns are not allowed in safe functions
source\mir\bignum\decimal.d(429,50): Deprecation: `void` initializers for types with unsafe bit patterns are not allowed in safe functions
source\mir\bignum\decimal.d(510,12): Deprecation: `@safe` function `__unittest_L498_C43` calling `opBinary`
source\mir\format.d(197,16):        which calls `mir.format.print!(char, StringBuf!(char, 256u), Decimal!1u).print`
source\mir\format.d(1050,25):        which calls `mir.bignum.decimal.Decimal!1u.Decimal.toString!(char, StringBuf!(char, 256u)).toString`
source\mir\bignum\decimal.d(75,31):        which wouldn't be `@safe` because of:
source\mir\bignum\decimal.d(75,31):        `void` initializers for types with unsafe bit patterns are not allowed in safe functions
[I cut it off here, lots of repeats]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant