1
1
use crate :: attr:: { Entry , ExecutionModeExtra , IntrinsicType , SpecConstant , SpirvAttribute } ;
2
2
use crate :: builder:: libm_intrinsics;
3
3
use rspirv:: spirv:: { BuiltIn , ExecutionMode , ExecutionModel , StorageClass } ;
4
- use rustc_ast:: ast:: { LitIntType , LitKind , MetaItemInner , MetaItemLit } ;
4
+ use rustc_ast:: ast:: { LitKind , MetaItemInner , MetaItemLit } ;
5
5
use rustc_data_structures:: fx:: FxHashMap ;
6
6
use rustc_hir:: Attribute ;
7
7
use rustc_span:: Span ;
@@ -563,7 +563,7 @@ fn parse_attr_int_value(arg: &MetaItemInner) -> Result<u32, ParseAttrError> {
563
563
} ;
564
564
match arg. name_value_literal ( ) {
565
565
Some ( & MetaItemLit {
566
- kind : LitKind :: Int ( x, LitIntType :: Unsuffixed ) ,
566
+ kind : LitKind :: Int ( x, .. ) ,
567
567
..
568
568
} ) if x <= u32:: MAX as u128 => Ok ( x. get ( ) as u32 ) ,
569
569
_ => 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
581
581
for ( idx, lit) in tuple. iter ( ) . enumerate ( ) {
582
582
match lit {
583
583
MetaItemInner :: Lit ( MetaItemLit {
584
- kind : LitKind :: Int ( x, LitIntType :: Unsuffixed ) ,
584
+ kind : LitKind :: Int ( x, .. ) ,
585
585
..
586
586
} ) if * x <= u32:: MAX as u128 => local_size[ idx] = x. get ( ) as u32 ,
587
587
_ => return Err ( ( lit. span ( ) , "must be a u32 literal" . to_string ( ) ) ) ,
0 commit comments