diff options
| author | bors <bors@rust-lang.org> | 2024-02-15 14:43:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-15 14:43:29 +0000 |
| commit | 62fb0db9a5a2a381f81ce0474c9bbd9ad385dd88 (patch) | |
| tree | ba64d712234ea978886f3ee941429617e10ade71 /compiler/rustc_pattern_analysis/src | |
| parent | fa9f77ff35b4b63ed0cef9a9642c8f881b33f14f (diff) | |
| parent | 9d84589a96c4f14cb9ac955b8708412854f9246b (diff) | |
| download | rust-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
