Skip to content

Commit 241a17a

Browse files
committed
enable dyn ToString
1 parent 904c61f commit 241a17a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/liballoc/string.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,6 +2138,7 @@ impl FromStr for String {
21382138
///
21392139
/// [`Display`]: ../../std/fmt/trait.Display.html
21402140
#[stable(feature = "rust1", since = "1.0.0")]
2141+
#[cfg_attr(not(bootstrap), rustc_dyn)]
21412142
pub trait ToString {
21422143
/// Converts the given value to a `String`.
21432144
///

0 commit comments

Comments
 (0)