diff '--color=auto' -Naur a/third_party/rust/allocator-api2/src/stable/vec/mod.rs b/third_party/rust/allocator-api2/src/stable/vec/mod.rs
--- a/third_party/rust/allocator-api2/src/stable/vec/mod.rs	2025-08-12 09:33:20.769906304 +0300
+++ b/third_party/rust/allocator-api2/src/stable/vec/mod.rs	2025-08-12 09:35:08.708451630 +0300
@@ -1899,7 +1899,7 @@
     #[cfg(not(no_global_oom_handling))]
     #[inline(always)]
     unsafe fn append_elements(&mut self, other: *const [T]) {
-        let count = unsafe { (*other).len() };
+        let count = other.len();
         self.reserve(count);
         let len = self.len();
         unsafe { ptr::copy_nonoverlapping(other as *const T, self.as_mut_ptr().add(len), count) };
