Skip to content

Commit bd40cbb

Browse files
committed
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!
2 parents 21dae95 + 2e73e76 commit bd40cbb

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)