2

Fix stacked borrows violations in waker_ref and FuturesUnordered by taiki-e · Pu...

 2 years ago
source link: https://github.com/rust-lang/futures-rs/pull/2550
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Member

taiki-e commented 8 days ago

edited

Split from #2548

To fix this problem, we need to use Arc::as_ptr. Therefore, this increases the MSRV of futures-task to 1.45.

See rust-lang/rust#67339 for more.

waker_ref:

MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-tag-raw-pointers" cargo miri test -p futures-channel --test mpsc-close -- smoke

output

FuturesUnordered:

MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-tag-raw-pointers" cargo miri test -p futures:0.4.0-alpha.0 --test stream_futures_ordered -- works_1

output


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK