@@ -55,7 +55,7 @@ macro_rules! typed_literal {
55
55
SignedInt ( ast:: IntTy :: I32 ) => ConstInt :: I32 ( $lit) ,
56
56
SignedInt ( ast:: IntTy :: I64 ) => ConstInt :: I64 ( $lit) ,
57
57
SignedInt ( ast:: IntTy :: I128 ) => ConstInt :: I128 ( $lit) ,
58
- SignedInt ( ast:: IntTy :: Is ) => match $tcx. sess. target. isize_ty {
58
+ SignedInt ( ast:: IntTy :: Isize ) => match $tcx. sess. target. isize_ty {
59
59
ast:: IntTy :: I16 => ConstInt :: Isize ( ConstIsize :: Is16 ( $lit) ) ,
60
60
ast:: IntTy :: I32 => ConstInt :: Isize ( ConstIsize :: Is32 ( $lit) ) ,
61
61
ast:: IntTy :: I64 => ConstInt :: Isize ( ConstIsize :: Is64 ( $lit) ) ,
@@ -66,7 +66,7 @@ macro_rules! typed_literal {
66
66
UnsignedInt ( ast:: UintTy :: U32 ) => ConstInt :: U32 ( $lit) ,
67
67
UnsignedInt ( ast:: UintTy :: U64 ) => ConstInt :: U64 ( $lit) ,
68
68
UnsignedInt ( ast:: UintTy :: U128 ) => ConstInt :: U128 ( $lit) ,
69
- UnsignedInt ( ast:: UintTy :: Us ) => match $tcx. sess. target. usize_ty {
69
+ UnsignedInt ( ast:: UintTy :: Usize ) => match $tcx. sess. target. usize_ty {
70
70
ast:: UintTy :: U16 => ConstInt :: Usize ( ConstUsize :: Us16 ( $lit) ) ,
71
71
ast:: UintTy :: U32 => ConstInt :: Usize ( ConstUsize :: Us32 ( $lit) ) ,
72
72
ast:: UintTy :: U64 => ConstInt :: Usize ( ConstUsize :: Us64 ( $lit) ) ,
@@ -84,13 +84,13 @@ impl IntTypeExt for attr::IntType {
84
84
SignedInt ( ast:: IntTy :: I32 ) => tcx. types . i32 ,
85
85
SignedInt ( ast:: IntTy :: I64 ) => tcx. types . i64 ,
86
86
SignedInt ( ast:: IntTy :: I128 ) => tcx. types . i128 ,
87
- SignedInt ( ast:: IntTy :: Is ) => tcx. types . isize ,
87
+ SignedInt ( ast:: IntTy :: Isize ) => tcx. types . isize ,
88
88
UnsignedInt ( ast:: UintTy :: U8 ) => tcx. types . u8 ,
89
89
UnsignedInt ( ast:: UintTy :: U16 ) => tcx. types . u16 ,
90
90
UnsignedInt ( ast:: UintTy :: U32 ) => tcx. types . u32 ,
91
91
UnsignedInt ( ast:: UintTy :: U64 ) => tcx. types . u64 ,
92
92
UnsignedInt ( ast:: UintTy :: U128 ) => tcx. types . u128 ,
93
- UnsignedInt ( ast:: UintTy :: Us ) => tcx. types . usize ,
93
+ UnsignedInt ( ast:: UintTy :: Usize ) => tcx. types . usize ,
94
94
}
95
95
}
96
96
@@ -105,13 +105,13 @@ impl IntTypeExt for attr::IntType {
105
105
( SignedInt ( ast:: IntTy :: I32 ) , ConstInt :: I32 ( _) ) => { } ,
106
106
( SignedInt ( ast:: IntTy :: I64 ) , ConstInt :: I64 ( _) ) => { } ,
107
107
( SignedInt ( ast:: IntTy :: I128 ) , ConstInt :: I128 ( _) ) => { } ,
108
- ( SignedInt ( ast:: IntTy :: Is ) , ConstInt :: Isize ( _) ) => { } ,
108
+ ( SignedInt ( ast:: IntTy :: Isize ) , ConstInt :: Isize ( _) ) => { } ,
109
109
( UnsignedInt ( ast:: UintTy :: U8 ) , ConstInt :: U8 ( _) ) => { } ,
110
110
( UnsignedInt ( ast:: UintTy :: U16 ) , ConstInt :: U16 ( _) ) => { } ,
111
111
( UnsignedInt ( ast:: UintTy :: U32 ) , ConstInt :: U32 ( _) ) => { } ,
112
112
( UnsignedInt ( ast:: UintTy :: U64 ) , ConstInt :: U64 ( _) ) => { } ,
113
113
( UnsignedInt ( ast:: UintTy :: U128 ) , ConstInt :: U128 ( _) ) => { } ,
114
- ( UnsignedInt ( ast:: UintTy :: Us ) , ConstInt :: Usize ( _) ) => { } ,
114
+ ( UnsignedInt ( ast:: UintTy :: Usize ) , ConstInt :: Usize ( _) ) => { } ,
115
115
_ => bug ! ( "disr type mismatch: {:?} vs {:?}" , self , val) ,
116
116
}
117
117
}
0 commit comments