Closed damooo closed 2 years ago
Namaste :)
I can't reproduce this bug... I suspect that you are not using the latest version of the Rust compiler... What does rustc --version
give you?
rusc version: rustc 1.56.1 (59eed8a2a 2021-11-01)
toolchain: stable-x86_64-unknown-linux-gnu
Crate compiles well with nightly. Error is introduced in 0.1.3
, v0.1.1
works fine with stable. Due to same error sophia crates with version 0.7.1
are also not able to be compiled with stable, where as v0.7.0
crates works fine
That explains why our experience differ. I am using 1.57.0 (stable), which introduced support for panic in const context.
Is upgrading to 1.57.0 a show stopper for you?
Not at all. May be it will be helpfull to add Minimum Supported Rust Version to sophia, and mownstr docs. Thanks again for your great work.
I just pushed a note in mownstr
's README.
For Sophia, I will wait, because I will temporarily use the nightly
toolchain.
I think this issue can be closed, if that's ok with you.
Namaste @pchampin
Current version is building against stable rust 2021,
error says
Panicking in constant function is unstable
at line34