about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-07-05 16:56:16 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-11-18 06:16:20 +0000
commit64a17a09a87118fdb80dae8bf993692d18ea9fa2 (patch)
tree1b53c3e7ba3b0dc91172defd251a712422a21d3c /library/alloc/src
parentc74f155b24005790fdc1ddf787a47e2bda38e01c (diff)
downloadrust-64a17a09a87118fdb80dae8bf993692d18ea9fa2.tar.gz
rust-64a17a09a87118fdb80dae8bf993692d18ea9fa2.zip
Rm diagnostic item, use lang item
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/string.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index 5799ef778c4..7a8e6f088f3 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -362,9 +362,8 @@ use crate::vec::Vec;
 /// [`Deref`]: core::ops::Deref "ops::Deref"
 /// [`as_str()`]: String::as_str
 #[derive(PartialOrd, Eq, Ord)]
-#[cfg_attr(not(test), rustc_diagnostic_item = "String")]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[cfg_attr(not(bootstrap), lang = "String")]
+#[cfg_attr(all(not(bootstrap), not(test)), lang = "String")]
 pub struct String {
     vec: Vec<u8>,
 }