Skip to content

Commit 2e24ef3

Browse files
sfackleralexcrichton
authored andcommitted
Rename to_str to to_string
Closes #15796. [breaking-change]
1 parent e3887a7 commit 2e24ef3

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

src/libstd/ascii.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use option::{Option, Some, None};
2020
use slice::{ImmutableVector, MutableVector, Vector};
2121
use str::{OwnedStr, Str, StrAllocating, StrSlice};
2222
use string::String;
23-
use to_str::{IntoStr};
23+
use to_string::IntoStr;
2424
use vec::Vec;
2525

2626
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.

src/libstd/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub mod gc;
239239

240240
pub mod from_str;
241241
pub mod num;
242-
pub mod to_str;
242+
pub mod to_string;
243243

244244
/* Common data structures */
245245

src/libstd/prelude.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
#[doc(no_inline)] pub use io::{Buffer, Writer, Reader, Seek};
7979
#[doc(no_inline)] pub use str::{Str, StrVector, StrSlice, OwnedStr};
8080
#[doc(no_inline)] pub use str::{IntoMaybeOwned, StrAllocating, UnicodeStrSlice};
81-
#[doc(no_inline)] pub use to_str::{ToString, IntoStr};
81+
#[doc(no_inline)] pub use to_string::{ToString, IntoStr};
8282
#[doc(no_inline)] pub use tuple::{Tuple1, Tuple2, Tuple3, Tuple4};
8383
#[doc(no_inline)] pub use tuple::{Tuple5, Tuple6, Tuple7, Tuple8};
8484
#[doc(no_inline)] pub use tuple::{Tuple9, Tuple10, Tuple11, Tuple12};

src/libstd/task.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ use rt::task::Task;
106106
use str::{Str, SendStr, IntoMaybeOwned};
107107
use string::String;
108108
use sync::Future;
109-
use to_str::ToString;
109+
use to_string::ToString;
110110

111111
/// A means of spawning a task
112112
pub trait Spawner {
File renamed without changes.

src/test/run-pass/class-cast-to-trait-cross-crate-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// aux-build:cci_class_cast.rs
1212
extern crate cci_class_cast;
1313

14-
use std::to_str::ToString;
14+
use std::to_string::ToString;
1515
use cci_class_cast::kitty::cat;
1616

1717
fn print_out(thing: Box<ToString>, expected: String) {

src/test/run-pass/send_str_treemap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern crate collections;
1212

1313
use std::collections::{ Map, MutableMap};
1414
use std::str::{SendStr, Owned, Slice};
15-
use std::to_str::ToString;
15+
use std::to_string::ToString;
1616
use self::collections::TreeMap;
1717
use std::option::Some;
1818

0 commit comments

Comments
 (0)