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 c628379 commit c7aad1bCopy full SHA for c7aad1b
alloc/src/string.rs
@@ -362,9 +362,8 @@ use crate::vec::Vec;
362
/// [`Deref`]: core::ops::Deref "ops::Deref"
363
/// [`as_str()`]: String::as_str
364
#[derive(PartialOrd, Eq, Ord)]
365
-#[cfg_attr(not(test), rustc_diagnostic_item = "String")]
366
#[stable(feature = "rust1", since = "1.0.0")]
367
-#[cfg_attr(not(bootstrap), lang = "String")]
+#[cfg_attr(all(not(bootstrap), not(test)), lang = "String")]
368
pub struct String {
369
vec: Vec<u8>,
370
}
0 commit comments