diff options
| author | Josef Reinhard Brandl <mail@josefbrandl.de> | 2018-07-01 09:28:16 +0200 |
|---|---|---|
| committer | Josef Reinhard Brandl <mail@josefbrandl.de> | 2018-07-02 13:59:40 +0200 |
| commit | 042928f0f591a63e0a2ed31c932015f4248d4fa7 (patch) | |
| tree | 304e3ee83eb3acb74ff10ba31405798c807c5c36 /src/libcore/future | |
| parent | d8bf2223672973f9d86f6c173793bcfce7890cd8 (diff) | |
| download | rust-042928f0f591a63e0a2ed31c932015f4248d4fa7.tar.gz rust-042928f0f591a63e0a2ed31c932015f4248d4fa7.zip | |
`UnsafeFutureObj` impl for `PinMut`
Diffstat (limited to 'src/libcore/future')
| -rw-r--r-- | src/libcore/future/future_obj.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/future/future_obj.rs b/src/libcore/future/future_obj.rs index c60b8b97d34..67bd3de98c1 100644 --- a/src/libcore/future/future_obj.rs +++ b/src/libcore/future/future_obj.rs @@ -126,7 +126,7 @@ impl<'a, T> Future for FutureObj<'a, T> { /// a non-concurrent fashion) with the result of `into_raw` until `drop` is /// called. pub unsafe trait UnsafeFutureObj<'a, T>: 'a { - /// Convert a owned instance into a (conceptually owned) void pointer. + /// Convert an owned instance into a (conceptually owned) void pointer. fn into_raw(self) -> *mut (); /// Poll the future represented by the given void pointer. @@ -136,7 +136,7 @@ pub unsafe trait UnsafeFutureObj<'a, T>: 'a { /// The trait implementor must guarantee that it is safe to repeatedly call /// `poll` with the result of `into_raw` until `drop` is called; such calls /// are not, however, allowed to race with each other or with calls to `drop`. - unsafe fn poll(future: *mut (), cx: &mut Context) -> Poll<T>; + unsafe fn poll(ptr: *mut (), cx: &mut Context) -> Poll<T>; /// Drops the future represented by the given void pointer. /// @@ -145,5 +145,5 @@ pub unsafe trait UnsafeFutureObj<'a, T>: 'a { /// The trait implementor must guarantee that it is safe to call this /// function once per `into_raw` invocation; that call cannot race with /// other calls to `drop` or `poll`. - unsafe fn drop(future: *mut ()); + unsafe fn drop(ptr: *mut ()); } |
