about summary refs log tree commit diff
path: root/library/core/src/str/mod.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2025-05-10 10:51:12 +0200
committerPietro Albini <pietro@pietroalbini.org>2025-05-12 15:33:37 +0200
commit2ce08ca5d6046600ff641bfa4018247f3b9451c5 (patch)
tree780e2e53e00dcc24d994cedc2c9593a6c3f216ad /library/core/src/str/mod.rs
parent2b7c13e7786db66605b0a1de017c1fe4aa888206 (diff)
downloadrust-2ce08ca5d6046600ff641bfa4018247f3b9451c5.tar.gz
rust-2ce08ca5d6046600ff641bfa4018247f3b9451c5.zip
update cfg(bootstrap)
Diffstat (limited to 'library/core/src/str/mod.rs')
-rw-r--r--library/core/src/str/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs
index dafabba645c..9e7e949b722 100644
--- a/library/core/src/str/mod.rs
+++ b/library/core/src/str/mod.rs
@@ -134,7 +134,7 @@ impl str {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[rustc_const_stable(feature = "const_str_len", since = "1.39.0")]
     #[rustc_diagnostic_item = "str_len"]
-    #[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
+    #[rustc_no_implicit_autorefs]
     #[must_use]
     #[inline]
     pub const fn len(&self) -> usize {
@@ -154,7 +154,7 @@ impl str {
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
     #[rustc_const_stable(feature = "const_str_is_empty", since = "1.39.0")]
-    #[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
+    #[rustc_no_implicit_autorefs]
     #[must_use]
     #[inline]
     pub const fn is_empty(&self) -> bool {