about summary refs log tree commit diff
path: root/src/libcore/slice.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-03 14:19:09 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-03 17:02:24 +0530
commit4f1f5eb1ab41bdc389913edb822da7be43e9b711 (patch)
tree0728cd81ce9fe1012652e9af00b9f2550c405e76 /src/libcore/slice.rs
parent415c42ecc4aa425d71821b5807569937aca3128c (diff)
parent1d647a0eec0315f95f982af68d0dc75d9e6a9e0c (diff)
downloadrust-4f1f5eb1ab41bdc389913edb822da7be43e9b711.tar.gz
rust-4f1f5eb1ab41bdc389913edb822da7be43e9b711.zip
Rollup merge of #22988 - dcrewi:slice-swap-inline, r=alexcrichton
Diffstat (limited to 'src/libcore/slice.rs')
-rw-r--r--src/libcore/slice.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index f99cfbaab5d..1f58d775354 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -351,6 +351,7 @@ impl<T> 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