Can't run optimize, error to compile lib bnum 0.7.0 dependent on cosmwasm-std
Steps to reproduce the issue
terrain contract:optimize my-dapp
...
Average cache write 0.000 s
Average cache read miss 0.000 s
Average cache read hit 0.000 s
Failed distributed compilations 0
Cache location Local disk: "/root/.cache/sccache"
Cache size 0 bytes
Max cache size 10 GiB
Building contract in /code ...
Compiling bnum v0.7.0
error[E0599]: no method named cast_mut found for raw pointer *const [u8; 8] in the current scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bnum-0.7.0/src/bint/endian.rs:77:47
|
77 | let ptr = uninit.as_ptr().cast_mut() as *mut u8;
| ^^^^^^^^ help: there is an associated function with a similar name: as_mut
Issue description
Can't run optimize, error to compile lib bnum 0.7.0 dependent on cosmwasm-std
Steps to reproduce the issue
terrain contract:optimize my-dapp ... Average cache write 0.000 s Average cache read miss 0.000 s Average cache read hit 0.000 s Failed distributed compilations 0 Cache location Local disk: "/root/.cache/sccache" Cache size 0 bytes Max cache size 10 GiB Building contract in /code ... Compiling bnum v0.7.0 error[E0599]: no method named
cast_mut
found for raw pointer*const [u8; 8]
in the current scope --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bnum-0.7.0/src/bint/endian.rs:77:47 | 77 | let ptr = uninit.as_ptr().cast_mut() as *mut u8; | ^^^^^^^^ help: there is an associated function with a similar name:as_mut
Tools and operating system versions
Terrain 0.8.0 Rustc 1.71.1 Node v16.16.0