Skip to content

Commit d4fbc3a

Browse files
committed
---
yaml --- r: 42042 b: refs/heads/master c: 19e015c h: refs/heads/master v: v3
1 parent 41bd373 commit d4fbc3a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 08bc19cbcd2638f41a5a613150b3d8a7d32072ea
2+
refs/heads/master: 19e015c44a9f5b911ac7ffa105395d442ece8fda
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libsyntax/ast.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,12 @@ enum trait_method {
973973
#[auto_decode]
974974
enum int_ty { ty_i, ty_char, ty_i8, ty_i16, ty_i32, ty_i64, }
975975

976+
impl int_ty : ToStr {
977+
pure fn to_str() -> ~str {
978+
::ast_util::int_ty_to_str(self)
979+
}
980+
}
981+
976982
impl int_ty : to_bytes::IterBytes {
977983
pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) {
978984
(*self as u8).iter_bytes(lsb0, f)
@@ -1003,6 +1009,12 @@ impl int_ty : cmp::Eq {
10031009
#[auto_decode]
10041010
enum uint_ty { ty_u, ty_u8, ty_u16, ty_u32, ty_u64, }
10051011

1012+
impl uint_ty : ToStr {
1013+
pure fn to_str() -> ~str {
1014+
::ast_util::uint_ty_to_str(self)
1015+
}
1016+
}
1017+
10061018
impl uint_ty : to_bytes::IterBytes {
10071019
pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) {
10081020
(*self as u8).iter_bytes(lsb0, f)
@@ -1031,6 +1043,12 @@ impl uint_ty : cmp::Eq {
10311043
#[auto_decode]
10321044
enum float_ty { ty_f, ty_f32, ty_f64, }
10331045

1046+
impl float_ty : ToStr {
1047+
pure fn to_str() -> ~str {
1048+
::ast_util::float_ty_to_str(self)
1049+
}
1050+
}
1051+
10341052
impl float_ty : to_bytes::IterBytes {
10351053
pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) {
10361054
(*self as u8).iter_bytes(lsb0, f)

0 commit comments

Comments
 (0)