We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b99ff7 commit fd80ab7Copy full SHA for fd80ab7
library/alloc/src/string.rs
@@ -2614,6 +2614,15 @@ impl ToString for String {
2614
}
2615
2616
2617
+#[cfg(not(no_global_oom_handling))]
2618
+#[stable(feature = "fmt_arguments_to_string_specialization", since = "CURRENT_RUSTC_VERSION")]
2619
+impl ToString for fmt::Arguments<'_> {
2620
+ #[inline]
2621
+ fn to_string(&self) -> String {
2622
+ crate::fmt::format(*self)
2623
+ }
2624
+}
2625
+
2626
#[stable(feature = "rust1", since = "1.0.0")]
2627
impl AsRef<str> for String {
2628
#[inline]
0 commit comments