core: Inline From<AllocErr> for CollectionAllocErr

This shows up in allocations of vectors and such, so no need for it to not be
inlined!
This commit is contained in:
Alex Crichton 2018-04-10 11:25:23 -07:00
parent 99d4886ead
commit 2e73e76e73

View file

@ -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
}