about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-03-30 14:36:28 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-03-30 14:37:44 +0200
commit87cdfb6e71b0ebe3e41e04d8840a20d7428197be (patch)
tree4376edff6c97540d941bb6d45271f219e91dae86 /src/liballoc
parenta80ec3b3b1d11ed83754885efdd07037d256dbf2 (diff)
downloadrust-87cdfb6e71b0ebe3e41e04d8840a20d7428197be.tar.gz
rust-87cdfb6e71b0ebe3e41e04d8840a20d7428197be.zip
Add inline attributes for functions used in the query system
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/slice.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs
index d8fc1faca3a..7ec99e0368e 100644
--- a/src/liballoc/slice.rs
+++ b/src/liballoc/slice.rs
@@ -141,6 +141,7 @@ mod hack {
     use crate::string::ToString;
     use crate::vec::Vec;
 
+    #[inline]
     pub fn into_vec<T>(b: Box<[T]>) -> Vec<T> {
         unsafe {
             let len = b.len();