rollup merge of #20708: aturon/new-int-modules
Conflicts: src/libserialize/lib.rs
This commit is contained in:
commit
dd38f46d71
35 changed files with 130 additions and 416 deletions
|
|
@ -930,18 +930,6 @@ pub trait ToString {
|
|||
fn to_string(&self) -> String;
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl<T: fmt::Show> ToString for T {
|
||||
fn to_string(&self) -> String {
|
||||
use core::fmt::Writer;
|
||||
let mut buf = String::new();
|
||||
let _ = buf.write_fmt(format_args!("{}", self));
|
||||
buf.shrink_to_fit();
|
||||
buf
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
impl<T: fmt::String> ToString for T {
|
||||
fn to_string(&self) -> String {
|
||||
use core::fmt::Writer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue