11use  crate :: attr:: { Entry ,  ExecutionModeExtra ,  IntrinsicType ,  SpecConstant ,  SpirvAttribute } ; 
22use  crate :: builder:: libm_intrinsics; 
33use  rspirv:: spirv:: { BuiltIn ,  ExecutionMode ,  ExecutionModel ,  StorageClass } ; 
4- use  rustc_ast:: ast:: { LitIntType ,   LitKind ,  MetaItemInner ,  MetaItemLit } ; 
4+ use  rustc_ast:: ast:: { LitKind ,  MetaItemInner ,  MetaItemLit } ; 
55use  rustc_data_structures:: fx:: FxHashMap ; 
66use  rustc_hir:: Attribute ; 
77use  rustc_span:: Span ; 
@@ -563,7 +563,7 @@ fn parse_attr_int_value(arg: &MetaItemInner) -> Result<u32, ParseAttrError> {
563563    } ; 
564564    match  arg. name_value_literal ( )  { 
565565        Some ( & MetaItemLit  { 
566-             kind :  LitKind :: Int ( x,  LitIntType :: Unsuffixed ) , 
566+             kind :  LitKind :: Int ( x,  .. ) , 
567567            ..
568568        } )  if  x <= u32:: MAX  as  u128  => Ok ( x. get ( )  as  u32 ) , 
569569        _ => Err ( ( arg. span ,  "attribute value must be integer" . to_string ( ) ) ) , 
@@ -581,7 +581,7 @@ fn parse_local_size_attr(arg: &MetaItemInner) -> Result<[u32; 3], ParseAttrError
581581            for  ( idx,  lit)  in  tuple. iter ( ) . enumerate ( )  { 
582582                match  lit { 
583583                    MetaItemInner :: Lit ( MetaItemLit  { 
584-                         kind :  LitKind :: Int ( x,  LitIntType :: Unsuffixed ) , 
584+                         kind :  LitKind :: Int ( x,  .. ) , 
585585                        ..
586586                    } )  if  * x <= u32:: MAX  as  u128  => local_size[ idx]  = x. get ( )  as  u32 , 
587587                    _ => return  Err ( ( lit. span ( ) ,  "must be a u32 literal" . to_string ( ) ) ) , 
0 commit comments