diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2022-07-05 16:56:16 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-11-18 06:16:20 +0000 |
| commit | 64a17a09a87118fdb80dae8bf993692d18ea9fa2 (patch) | |
| tree | 1b53c3e7ba3b0dc91172defd251a712422a21d3c /library/alloc/src | |
| parent | c74f155b24005790fdc1ddf787a47e2bda38e01c (diff) | |
| download | rust-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.rs | 3 |
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>, } |
