diff --git a/src/libcore/future/future_obj.rs b/src/libcore/future/future_obj.rs index b42fd2b5bd7..86fe9825ded 100644 --- a/src/libcore/future/future_obj.rs +++ b/src/libcore/future/future_obj.rs @@ -47,7 +47,7 @@ impl<'a, T> LocalFutureObj<'a, T> { /// instance from which this `LocalFutureObj` was created actually /// implements `Send`. #[inline] - pub unsafe fn as_future_obj(self) -> FutureObj<'a, T> { + pub unsafe fn into_future_obj(self) -> FutureObj<'a, T> { FutureObj(self) } }