diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index f99cfbaab5d70..1f58d7753549d 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -351,6 +351,7 @@ impl SliceExt for [T] { ChunksMut { v: self, chunk_size: chunk_size } } + #[inline] fn swap(&mut self, a: usize, b: usize) { unsafe { // Can't take two mutable loans from one vector, so instead just cast