1
Fork 0

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!
This commit is contained in:
bors 2018-04-14 20:22:19 +00:00
commit bd40cbbe1f

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
}