Add support for bool, char to extfmt.
XFAIL syntax-extension-fmt in rustboot.
This commit is contained in:
parent
37f87161cc
commit
bba245f3e6
3 changed files with 32 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue