about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-14 20:22:19 +0000
committerbors <bors@rust-lang.org>2018-04-14 20:22:19 +0000
commitbd40cbbe1f42bfcc18a823dd46f584127f6578f2 (patch)
tree12564adf00fb363bfd1f09cf8d2abd1bb3cacd27
parent21dae950bebab7376d2bcb92299861e6cd05299d (diff)
parent2e73e76e732310ebefa7bde145f1da4ee6110443 (diff)
downloadrust-bd40cbbe1f42bfcc18a823dd46f584127f6578f2.tar.gz
rust-bd40cbbe1f42bfcc18a823dd46f584127f6578f2.zip
Auto merge of #49850 - alexcrichton:moreinline, r=sfackler
core: Inline `From<AllocErr> for CollectionAllocErr`

This shows up in allocations of vectors and such, so no need for it to not be
inlined!
-rw-r--r--src/libcore/alloc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs
index 8f8849e32e6..22c67436378 100644
--- a/src/libcore/alloc.rs
+++ b/src/libcore/alloc.rs
@@ -380,6 +380,7 @@ pub enum CollectionAllocErr {
 
 #[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
 impl From<AllocErr> for CollectionAllocErr {
+    #[inline]
     fn from(AllocErr: AllocErr) -> Self {
         CollectionAllocErr::AllocErr
     }