From 1d647a0eec0315f95f982af68d0dc75d9e6a9e0c Mon Sep 17 00:00:00 2001 From: David Creswick Date: Mon, 2 Mar 2015 22:06:51 -0600 Subject: [PATCH] Slice::swap should be inlineable --- src/libcore/slice.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 5b78da34eddde..89957f07af6a6 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