Skip to content

Commit aa536e9

Browse files
committed
---
yaml --- r: 181871 b: refs/heads/auto c: 1f4ee20 h: refs/heads/master i: 181869: bd8658b 181867: b3abcb1 181863: e649b53 181855: 2df2032 v: v3
1 parent ee3ef2a commit aa536e9

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 01615b04c6e79fa2e99281b94e6518fb2b505486
13+
refs/heads/auto: 1f4ee20ddae447f155b0d2b25e630e9c4e0cc1aa
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/ast_util.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ pub fn is_path(e: P<Expr>) -> bool {
141141
/// We want to avoid "45int" and "-3int" in favor of "45" and "-3"
142142
pub fn int_ty_to_string(t: IntTy, val: Option<i64>) -> String {
143143
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",
148145
TyI8 => "i8",
149146
TyI16 => "i16",
150147
TyI32 => "i32",
@@ -173,10 +170,7 @@ pub fn int_ty_max(t: IntTy) -> u64 {
173170
/// We want to avoid "42u" in favor of "42us". "42uint" is right out.
174171
pub fn uint_ty_to_string(t: UintTy, val: Option<u64>) -> String {
175172
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",
180174
TyU8 => "u8",
181175
TyU16 => "u16",
182176
TyU32 => "u32",

0 commit comments

Comments
 (0)