about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-15 14:43:29 +0000
committerbors <bors@rust-lang.org>2024-02-15 14:43:29 +0000
commit62fb0db9a5a2a381f81ce0474c9bbd9ad385dd88 (patch)
treeba64d712234ea978886f3ee941429617e10ade71 /compiler/rustc_pattern_analysis/src
parentfa9f77ff35b4b63ed0cef9a9642c8f881b33f14f (diff)
parent9d84589a96c4f14cb9ac955b8708412854f9246b (diff)
downloadrust-62fb0db9a5a2a381f81ce0474c9bbd9ad385dd88.tar.gz
rust-62fb0db9a5a2a381f81ce0474c9bbd9ad385dd88.zip
Auto merge of #119863 - tmiasko:will-wake, r=m-ou-se
Waker::will_wake: Compare vtable address instead of its content

Optimize will_wake implementation by comparing vtable address instead of its content.

The existing best practice to avoid false negatives from will_wake is to define a waker vtable as a static item. That approach continues to works with the new implementation.

While this potentially changes the observable behaviour, the function is documented to work on a best-effort basis. The PartialEq impl for RawWaker remains as it was.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions