From 554022e58392b173092e707b4c553713d07ed44d Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Mon, 23 Feb 2015 02:58:54 +0300 Subject: boxed: mark from_raw and into_raw functions inline --- src/liballoc/boxed.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/liballoc') diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 75260e94327..befdf995701 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -114,6 +114,7 @@ impl Box { /// function is called twice on the same raw pointer. #[unstable(feature = "alloc", reason = "may be renamed or moved out of Box scope")] + #[inline] pub unsafe fn from_raw(raw: *mut T) -> Self { mem::transmute(raw) } @@ -141,6 +142,7 @@ impl Box { /// ``` #[unstable(feature = "alloc", reason = "may be renamed")] +#[inline] pub unsafe fn into_raw(b: Box) -> *mut T { mem::transmute(b) } -- cgit 1.4.1-3-g733a5