Files
rust/library/alloc/src
Guillaume Boisseau b0ca9b5d44 Rollup merge of #121622 - dtolnay:wake, r=cuviper
Preserve same vtable pointer when cloning raw waker, to fix Waker::will_wake

Fixes #121600.

As `@jkarneges` identified in https://github.com/rust-lang/rust/issues/121600#issuecomment-1963041051, the issue is two different const promotions produce two statics at different addresses, which may or may not later be deduplicated by the linker (in this case not).

Prior to #119863, the content of the statics was compared, and they were equal. After, the address of the statics are compared and they are not equal.

It is documented that `will_wake` _"works on a best-effort basis, and may return false even when the Wakers would awaken the same task"_ so this PR fixes a quality-of-implementation issue, not a correctness issue.
2024-03-02 20:13:22 +01:00
..
2024-02-24 16:02:17 +03:00
2024-03-01 11:51:28 +00:00
2023-12-11 23:38:48 +01:00
2023-12-10 10:56:22 +08:00
2024-01-28 18:33:34 +01:00
2023-10-05 18:21:47 -04:00
2024-02-17 16:20:09 +08:00
2024-02-24 16:02:17 +03:00
2024-02-08 07:43:38 -05:00
2024-02-24 16:02:17 +03:00
2023-12-10 10:56:22 +08:00