summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-07-05 07:19:13 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-11-17 12:46:43 +0000
commitb2cb42d6a7b14b35e79f56228682148ecdd8a6a9 (patch)
treea017d92db5f6602805df299c3503a4f91a9e766c /library/alloc
parent7c75fe4c8547c276574cacb144919d67fd8ab302 (diff)
downloadrust-b2cb42d6a7b14b35e79f56228682148ecdd8a6a9.tar.gz
rust-b2cb42d6a7b14b35e79f56228682148ecdd8a6a9.zip
Minimal implementation of implicit deref patterns
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/string.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index c9ba8921f6e..5799ef778c4 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -364,6 +364,7 @@ use crate::vec::Vec;
 #[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")]
 pub struct String {
     vec: Vec<u8>,
 }