sfmt
sfmt copied to clipboard
Const generic does not works on rustc 1.54.0
Rust 1.54.0 causes compiler error likes:
error: generic parameters may not be used in const operations
--> src/sfmt.rs:39:39
|
39 | let y = _mm_srli_epi32(b, Self::SFMT_SR1);
| ^^^^^^^^^^^^^^ cannot perform const operation using `Self`
|
= note: type parameters may not be used in const expressions
I guess it is due to https://github.com/rust-lang/rust/issues/83167