Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a7e8f91

Browse files
committedMar 30, 2023
missed a safety comment
1 parent 47f3542 commit a7e8f91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎library/core/src/task/wake.rs

+1
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ unsafe impl Sync for RawWakerVTable {}
173173
#[stable(feature = "futures_api", since = "1.36.0")]
174174
impl PartialEq for RawWakerVTable {
175175
fn eq(&self, other: &Self) -> bool {
176+
// SAFETY: Comparison is just a bunch of pointer-equality: checking exact variants is unnecessary.
176177
unsafe { self.v2 == other.v2 }
177178
}
178179
}

0 commit comments

Comments
 (0)
Please sign in to comment.