File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
branches/beta/src/libsyntax Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
32
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
- refs/heads/beta: 01615b04c6e79fa2e99281b94e6518fb2b505486
34
+ refs/heads/beta: 1f4ee20ddae447f155b0d2b25e630e9c4e0cc1aa
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
36
36
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37
37
refs/heads/tmp: c65fb1a81e5dc58cf171cc47f65de9e6e2119247
Original file line number Diff line number Diff line change @@ -141,10 +141,7 @@ pub fn is_path(e: P<Expr>) -> bool {
141
141
/// We want to avoid "45int" and "-3int" in favor of "45" and "-3"
142
142
pub fn int_ty_to_string ( t : IntTy , val : Option < i64 > ) -> String {
143
143
let s = match t {
144
- TyIs ( true ) if val. is_some ( ) => "i" ,
145
- TyIs ( true ) => "int" ,
146
- TyIs ( false ) if val. is_some ( ) => "is" ,
147
- TyIs ( false ) => "isize" ,
144
+ TyIs ( _) => "isize" ,
148
145
TyI8 => "i8" ,
149
146
TyI16 => "i16" ,
150
147
TyI32 => "i32" ,
@@ -173,10 +170,7 @@ pub fn int_ty_max(t: IntTy) -> u64 {
173
170
/// We want to avoid "42u" in favor of "42us". "42uint" is right out.
174
171
pub fn uint_ty_to_string ( t : UintTy , val : Option < u64 > ) -> String {
175
172
let s = match t {
176
- TyUs ( true ) if val. is_some ( ) => "u" ,
177
- TyUs ( true ) => "uint" ,
178
- TyUs ( false ) if val. is_some ( ) => "us" ,
179
- TyUs ( false ) => "usize" ,
173
+ TyUs ( _) => "usize" ,
180
174
TyU8 => "u8" ,
181
175
TyU16 => "u16" ,
182
176
TyU32 => "u32" ,
You can’t perform that action at this time.
0 commit comments