Skip to content

Const generic does not works on rustc 1.54.0 #36

Description

@termoshtt

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 rust-lang/rust#83167

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions