sfmt icon indicating copy to clipboard operation
sfmt copied to clipboard

Const generic does not works on rustc 1.54.0

Open termoshtt opened this issue 4 years ago • 0 comments

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

termoshtt avatar Sep 06 '21 11:09 termoshtt