diff --git a/core/src/array/mod.rs b/core/src/array/mod.rs index 5c826b9993f86..61c713c9e81cf 100644 --- a/core/src/array/mod.rs +++ b/core/src/array/mod.rs @@ -889,6 +889,7 @@ impl Guard<'_, T> { } impl Drop for Guard<'_, T> { + #[inline] fn drop(&mut self) { debug_assert!(self.initialized <= self.array_mut.len());