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 e7d4613 commit 0862058Copy full SHA for 0862058
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