Rollup merge of #105980 - goffrie:waker-drop, r=thomcc

Refer to "Waker" rather than "RawWaker" in `drop` comment

In my view this is technically more correct as `Waker` actually implements `Drop` (which calls the `drop` method) whereas `RawWaker` does not.
This commit is contained in:
Yuki Okushi 2022-12-22 08:32:11 +09:00 committed by GitHub
commit 03a763c5c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ pub struct RawWakerVTable {
/// pointer.
wake_by_ref: unsafe fn(*const ()),
/// This function gets called when a [`RawWaker`] gets dropped.
/// This function gets called when a [`Waker`] gets dropped.
///
/// The implementation of this function must make sure to release any
/// resources that are associated with this instance of a [`RawWaker`] and
@ -151,7 +151,7 @@ impl RawWakerVTable {
///
/// # `drop`
///
/// This function gets called when a [`RawWaker`] gets dropped.
/// This function gets called when a [`Waker`] gets dropped.
///
/// The implementation of this function must make sure to release any
/// resources that are associated with this instance of a [`RawWaker`] and