rm obsolete integer to_str{,_radix} free functions
This commit is contained in:
parent
0d72f604b7
commit
46fc549fa9
27 changed files with 104 additions and 152 deletions
|
@ -28,7 +28,6 @@ use print::pp;
|
|||
use print::pprust;
|
||||
|
||||
use std::io;
|
||||
use std::u64;
|
||||
|
||||
// The @ps is stored here to prevent recursive type.
|
||||
pub enum ann_node<'self> {
|
||||
|
@ -2035,24 +2034,24 @@ pub fn print_literal(s: @ps, lit: &ast::lit) {
|
|||
ast::lit_int(i, t) => {
|
||||
if i < 0_i64 {
|
||||
word(s.s,
|
||||
~"-" + u64::to_str_radix(-i as u64, 10u)
|
||||
~"-" + (-i as u64).to_str_radix(10u)
|
||||
+ ast_util::int_ty_to_str(t));
|
||||
} else {
|
||||
word(s.s,
|
||||
u64::to_str_radix(i as u64, 10u)
|
||||
(i as u64).to_str_radix(10u)
|
||||
+ ast_util::int_ty_to_str(t));
|
||||
}
|
||||
}
|
||||
ast::lit_uint(u, t) => {
|
||||
word(s.s,
|
||||
u64::to_str_radix(u, 10u)
|
||||
u.to_str_radix(10u)
|
||||
+ ast_util::uint_ty_to_str(t));
|
||||
}
|
||||
ast::lit_int_unsuffixed(i) => {
|
||||
if i < 0_i64 {
|
||||
word(s.s, ~"-" + u64::to_str_radix(-i as u64, 10u));
|
||||
word(s.s, ~"-" + (-i as u64).to_str_radix(10u));
|
||||
} else {
|
||||
word(s.s, u64::to_str_radix(i as u64, 10u));
|
||||
word(s.s, (i as u64).to_str_radix(10u));
|
||||
}
|
||||
}
|
||||
ast::lit_float(f, t) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue