diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2025-05-10 10:51:12 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2025-05-12 15:33:37 +0200 |
| commit | 2ce08ca5d6046600ff641bfa4018247f3b9451c5 (patch) | |
| tree | 780e2e53e00dcc24d994cedc2c9593a6c3f216ad /library/alloc/src/string.rs | |
| parent | 2b7c13e7786db66605b0a1de017c1fe4aa888206 (diff) | |
| download | rust-2ce08ca5d6046600ff641bfa4018247f3b9451c5.tar.gz rust-2ce08ca5d6046600ff641bfa4018247f3b9451c5.zip | |
update cfg(bootstrap)
Diffstat (limited to 'library/alloc/src/string.rs')
| -rw-r--r-- | library/alloc/src/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index cd9e04a915a..4e42a5da7ea 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1832,7 +1832,7 @@ impl String { #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_stable(feature = "const_vec_string_slice", since = "1.87.0")] #[rustc_confusables("length", "size")] - #[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)] + #[rustc_no_implicit_autorefs] pub const fn len(&self) -> usize { self.vec.len() } @@ -1852,7 +1852,7 @@ impl String { #[must_use] #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_stable(feature = "const_vec_string_slice", since = "1.87.0")] - #[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)] + #[rustc_no_implicit_autorefs] pub const fn is_empty(&self) -> bool { self.len() == 0 } |
