File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
30
30
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
- refs/heads/batch: 5364c4853fa61aced8fdf773d9de41b929a0d318
32
+ refs/heads/batch: 3155b3101108dc9a3be32b6cb3cf33b9e1c45a0c
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
34
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
Original file line number Diff line number Diff line change @@ -932,7 +932,7 @@ pub trait ToString {
932
932
fn to_string ( & self ) -> String ;
933
933
}
934
934
935
- impl < T : fmt:: String > ToString for T {
935
+ impl < T : fmt:: String + ? Sized > ToString for T {
936
936
fn to_string ( & self ) -> String {
937
937
use core:: fmt:: Writer ;
938
938
let mut buf = String :: new ( ) ;
@@ -994,6 +994,12 @@ mod tests {
994
994
assert_eq ! ( owned. as_ref( ) . map( |s| s. as_slice( ) ) , Some ( "string" ) ) ;
995
995
}
996
996
997
+ #[ test]
998
+ fn test_unsized_to_string ( ) {
999
+ let s: & str = "abc" ;
1000
+ let _: String = ( * s) . to_string ( ) ;
1001
+ }
1002
+
997
1003
#[ test]
998
1004
fn test_from_utf8 ( ) {
999
1005
let xs = b"hello" . to_vec ( ) ;
Original file line number Diff line number Diff line change 44
44
//! let two = xs.pop();
45
45
//! ```
46
46
47
- #![ stable]
48
-
49
47
use core:: prelude:: * ;
50
48
51
49
use alloc:: boxed:: Box ;
Original file line number Diff line number Diff line change 11
11
//! Utilities for formatting and printing strings
12
12
13
13
#![ allow( unused_variables) ]
14
- #![ stable]
15
14
16
15
use any;
17
16
use cell:: { Cell , RefCell , Ref , RefMut } ;
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ mod u_str;
57
57
/// (inclusive) are allowed. A `char` can always be safely cast to a `u32`;
58
58
/// however the converse is not always true due to the above range limits
59
59
/// and, as such, should be performed via the `from_u32` function..
60
- #[ stable]
61
60
pub mod char {
62
61
pub use core:: char:: { MAX , from_u32, from_digit} ;
63
62
You can’t perform that action at this time.
0 commit comments