diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2025-04-19 04:59:50 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2025-04-19 04:59:50 +0000 |
| commit | 9726e6b4689a8b6b9d759176cbef2f7445a54b2e (patch) | |
| tree | 66c0dcc84f431c3ed6b86ddf8a7477ad4bfebedf /library/alloc/src/string.rs | |
| parent | 4b995e72b66e510f678484400c33f838cbf0361b (diff) | |
| parent | 40ba47d3b0d53374c9170871f82a410e632fe1e3 (diff) | |
Merge from rustc
Diffstat (limited to 'library/alloc/src/string.rs')
| -rw-r--r-- | library/alloc/src/string.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 9a161d057db..cd9e04a915a 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1832,6 +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)] pub const fn len(&self) -> usize { self.vec.len() } @@ -1851,6 +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)] pub const fn is_empty(&self) -> bool { self.len() == 0 } |
