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:
commit
bd40cbbe1f
1 changed files with 1 additions and 0 deletions
|
@ -380,6 +380,7 @@ pub enum CollectionAllocErr {
|
||||||
|
|
||||||
#[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
|
#[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
|
||||||
impl From<AllocErr> for CollectionAllocErr {
|
impl From<AllocErr> for CollectionAllocErr {
|
||||||
|
#[inline]
|
||||||
fn from(AllocErr: AllocErr) -> Self {
|
fn from(AllocErr: AllocErr) -> Self {
|
||||||
CollectionAllocErr::AllocErr
|
CollectionAllocErr::AllocErr
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue