提交 2e24ef37 编写于 作者: S Steven Fackler 提交者: Alex Crichton

Rename to_str to to_string

Closes #15796.

[breaking-change]
上级 e3887a77
......@@ -20,7 +20,7 @@
use slice::{ImmutableVector, MutableVector, Vector};
use str::{OwnedStr, Str, StrAllocating, StrSlice};
use string::String;
use to_str::{IntoStr};
use to_string::IntoStr;
use vec::Vec;
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
......
......@@ -239,7 +239,7 @@ fn start(argc: int, argv: *const *const u8) -> int {
pub mod from_str;
pub mod num;
pub mod to_str;
pub mod to_string;
/* Common data structures */
......
......@@ -78,7 +78,7 @@
#[doc(no_inline)] pub use io::{Buffer, Writer, Reader, Seek};
#[doc(no_inline)] pub use str::{Str, StrVector, StrSlice, OwnedStr};
#[doc(no_inline)] pub use str::{IntoMaybeOwned, StrAllocating, UnicodeStrSlice};
#[doc(no_inline)] pub use to_str::{ToString, IntoStr};
#[doc(no_inline)] pub use to_string::{ToString, IntoStr};
#[doc(no_inline)] pub use tuple::{Tuple1, Tuple2, Tuple3, Tuple4};
#[doc(no_inline)] pub use tuple::{Tuple5, Tuple6, Tuple7, Tuple8};
#[doc(no_inline)] pub use tuple::{Tuple9, Tuple10, Tuple11, Tuple12};
......
......@@ -106,7 +106,7 @@
use str::{Str, SendStr, IntoMaybeOwned};
use string::String;
use sync::Future;
use to_str::ToString;
use to_string::ToString;
/// A means of spawning a task
pub trait Spawner {
......
......@@ -11,7 +11,7 @@
// aux-build:cci_class_cast.rs
extern crate cci_class_cast;
use std::to_str::ToString;
use std::to_string::ToString;
use cci_class_cast::kitty::cat;
fn print_out(thing: Box<ToString>, expected: String) {
......
......@@ -12,7 +12,7 @@
use std::collections::{ Map, MutableMap};
use std::str::{SendStr, Owned, Slice};
use std::to_str::ToString;
use std::to_string::ToString;
use self::collections::TreeMap;
use std::option::Some;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册