You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This compiler warning pops up a bunch of times. It seems to only affect things that call Poseidon.
warning: cannot use constants which depend on generic parameters in types
--> src/field/field_types.rs:19:47
|
19 | pub trait RichField: PrimeField + GMiMC<12> + Poseidon<12> {}
| ^^^^^^^^^^^^
|
= note: `#[warn(const_evaluatable_unchecked)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
warning: cannot use constants which depend on generic parameters in types
--> src/hash/hashing.rs:83:26
|
83 | state = self.permute(state);
| ^^^^^^^
warning: cannot use constants which depend on generic parameters in types
--> src/hash/hashing.rs:142:33
|
142 | HashFamily::Poseidon => F::poseidon(inputs),
| ^^^^^^^^^^^
These warnings are suppressed by #![allow(const_evaluatable_unchecked)] which has been included in #353. This hides the problem which is arguably not a good idea, but the issue should be addressed by #326 so I reckon hiding the warning is okay.
This compiler warning pops up a bunch of times. It seems to only affect things that call Poseidon.
The Rust tracking issue is rust-lang/rust#76200.
The text was updated successfully, but these errors were encountered: