From 2e73e76e732310ebefa7bde145f1da4ee6110443 Mon Sep 17 00:00:00 2001
From: Alex Crichton <alex@alexcrichton.com>
Date: Tue, 10 Apr 2018 11:25:23 -0700
Subject: [PATCH] core: Inline `From<AllocErr> for CollectionAllocErr`

This shows up in allocations of vectors and such, so no need for it to not be
inlined!
---
 src/libcore/alloc.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs
index 8f8849e32e6cb..22c674363789b 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
     }