Add support for bool, char to extfmt.

XFAIL syntax-extension-fmt in rustboot.
This commit is contained in:
Brian Anderson 2011-04-11 21:36:10 -04:00
parent 37f87161cc
commit bba245f3e6
3 changed files with 32 additions and 3 deletions

View file

@ -271,6 +271,18 @@ mod RT {
fn uint_to_str(uint u) -> str {
ret _uint.to_str(u, 10u);
}
fn bool_to_str(bool b) -> str {
if (b) {
ret "true";
} else {
ret "false";
}
}
fn char_to_str(char c) -> str {
ret _str.from_char(c);
}
}
// Local Variables: