about summary refs log tree commit diff
path: root/library/std/src/sys/unix/memchr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/unix/memchr.rs')
-rw-r--r--library/std/src/sys/unix/memchr.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/memchr.rs b/library/std/src/sys/unix/memchr.rs
index a3e4f8ff56a..73ba604eccb 100644
--- a/library/std/src/sys/unix/memchr.rs
+++ b/library/std/src/sys/unix/memchr.rs
@@ -26,6 +26,8 @@ pub fn memrchr(needle: u8, haystack: &[u8]) -> Option<usize> {
                 haystack.len(),
             )
         };
+        // FIXME: this should *likely* use `offset_from`, but more
+        // investigation is needed (including running tests in miri).
         if p.is_null() { None } else { Some(p.addr() - haystack.as_ptr().addr()) }
     }