about summary refs log tree commit diff
path: root/library/alloc/src/string.rs
diff options
context:
space:
mode:
authorAndrea Nall <anall@andreanall.com>2021-02-16 02:32:21 +0000
committerAndrea Nall <anall@andreanall.com>2021-02-16 02:32:21 +0000
commit67fcaaaa7a9c393926e25db600a9976137425d68 (patch)
tree200bffeac102eef6010cfe328b8ce914991e8558 /library/alloc/src/string.rs
parentc6bb62810ae226b35e0181d8c4efc6d0377d196d (diff)
downloadrust-67fcaaaa7a9c393926e25db600a9976137425d68.tar.gz
rust-67fcaaaa7a9c393926e25db600a9976137425d68.zip
a few more diagnostic items
Diffstat (limited to 'library/alloc/src/string.rs')
-rw-r--r--library/alloc/src/string.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index 3218b3535c9..00fd1c2908b 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -2174,6 +2174,7 @@ impl FromStr for String {
 /// implementation for free.
 ///
 /// [`Display`]: fmt::Display
+#[cfg_attr(not(test), rustc_diagnostic_item = "ToString")]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait ToString {
     /// Converts the given value to a `String`.