]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/string.rs
Rollup merge of #104708 - jonasspinner:fix-backoff-doc-to-match-implementation, r...
[rust.git] / library / alloc / src / string.rs
index c9ba8921f6ecc939ad182bb7db3c078e187ba5e6..7a8e6f088f3acc5f3c63b1695e4b6d9907d2ec5c 100644 (file)
 /// [`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(all(not(bootstrap), not(test)), lang = "String")]
 pub struct String {
     vec: Vec<u8>,
 }