Skip to content

Commit 68d9b6e

Browse files
committed
---
yaml --- r: 171616 b: refs/heads/batch c: 3155b31 h: refs/heads/master v: v3
1 parent 2e058df commit 68d9b6e

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 5364c4853fa61aced8fdf773d9de41b929a0d318
32+
refs/heads/batch: 3155b3101108dc9a3be32b6cb3cf33b9e1c45a0c
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/libcollections/string.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ pub trait ToString {
932932
fn to_string(&self) -> String;
933933
}
934934

935-
impl<T: fmt::String> ToString for T {
935+
impl<T: fmt::String + ?Sized> ToString for T {
936936
fn to_string(&self) -> String {
937937
use core::fmt::Writer;
938938
let mut buf = String::new();
@@ -994,6 +994,12 @@ mod tests {
994994
assert_eq!(owned.as_ref().map(|s| s.as_slice()), Some("string"));
995995
}
996996

997+
#[test]
998+
fn test_unsized_to_string() {
999+
let s: &str = "abc";
1000+
let _: String = (*s).to_string();
1001+
}
1002+
9971003
#[test]
9981004
fn test_from_utf8() {
9991005
let xs = b"hello".to_vec();

branches/batch/src/libcollections/vec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
//! let two = xs.pop();
4545
//! ```
4646
47-
#![stable]
48-
4947
use core::prelude::*;
5048

5149
use alloc::boxed::Box;

branches/batch/src/libcore/fmt/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! Utilities for formatting and printing strings
1212
1313
#![allow(unused_variables)]
14-
#![stable]
1514

1615
use any;
1716
use cell::{Cell, RefCell, Ref, RefMut};

branches/batch/src/libunicode/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ mod u_str;
5757
/// (inclusive) are allowed. A `char` can always be safely cast to a `u32`;
5858
/// however the converse is not always true due to the above range limits
5959
/// and, as such, should be performed via the `from_u32` function..
60-
#[stable]
6160
pub mod char {
6261
pub use core::char::{MAX, from_u32, from_digit};
6362

0 commit comments

Comments
 (0)