about summary refs log tree commit diff
path: root/library/core/src/str/iter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/str/iter.rs')
-rw-r--r--library/core/src/str/iter.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/library/core/src/str/iter.rs b/library/core/src/str/iter.rs
index 83f484dc570..0c9307a6d2f 100644
--- a/library/core/src/str/iter.rs
+++ b/library/core/src/str/iter.rs
@@ -321,10 +321,7 @@ unsafe impl TrustedLen for Bytes<'_> {}
 #[doc(hidden)]
 #[unstable(feature = "trusted_random_access", issue = "none")]
 unsafe impl TrustedRandomAccess for Bytes<'_> {
-    #[inline]
-    fn may_have_side_effect() -> bool {
-        false
-    }
+    const MAY_HAVE_SIDE_EFFECT: bool = false;
 }
 
 /// This macro generates a Clone impl for string pattern API