Skip to content

Commit 0862058

Browse files
committed
Rm diagnostic item, use lang item
1 parent e7d4613 commit 0862058

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

alloc/src/string.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,8 @@ use crate::vec::Vec;
362362
/// [`Deref`]: core::ops::Deref "ops::Deref"
363363
/// [`as_str()`]: String::as_str
364364
#[derive(PartialOrd, Eq, Ord)]
365-
#[cfg_attr(not(test), rustc_diagnostic_item = "String")]
366365
#[stable(feature = "rust1", since = "1.0.0")]
367-
#[cfg_attr(not(bootstrap), lang = "String")]
366+
#[cfg_attr(all(not(bootstrap), not(test)), lang = "String")]
368367
pub struct String {
369368
vec: Vec<u8>,
370369
}

0 commit comments

Comments
 (0)