We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47f3542 commit a7e8f91Copy full SHA for a7e8f91
library/core/src/task/wake.rs
@@ -173,6 +173,7 @@ unsafe impl Sync for RawWakerVTable {}
173
#[stable(feature = "futures_api", since = "1.36.0")]
174
impl PartialEq for RawWakerVTable {
175
fn eq(&self, other: &Self) -> bool {
176
+ // SAFETY: Comparison is just a bunch of pointer-equality: checking exact variants is unnecessary.
177
unsafe { self.v2 == other.v2 }
178
}
179
0 commit comments