Skip to content

Commit 2e73e76

Browse files
committed
core: Inline From<AllocErr> for CollectionAllocErr
This shows up in allocations of vectors and such, so no need for it to not be inlined!
1 parent 99d4886 commit 2e73e76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/alloc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ pub enum CollectionAllocErr {
380380

381381
#[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
382382
impl From<AllocErr> for CollectionAllocErr {
383+
#[inline]
383384
fn from(AllocErr: AllocErr) -> Self {
384385
CollectionAllocErr::AllocErr
385386
}

0 commit comments

Comments
 (0)