-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Miri UB error from Fuse
#2879
Comments
I think this is rust-lang/miri#3780 / rust-lang/miri#3796 because Fuse uses |
Yes, looks like it; my understanding: the Maybe it's worth doing something like https://github.com/tokio-rs/tokio/pull/6744/files to |
To be honest, replacing the use of all Option's that might wrap futures with a custom repr-C enum does not sound like a realistic There are at least 25 that can be easily searched. (EDIT: Some streams contain future internally, such as ones generated by async-stream, so we may actually need to replace all |
Ralf opened a PR to work around this issue in rustc: rust-lang/rust#129313 Closing this issue in favor of upstream bug tracker. |
Tested code (playground):
gives a miri error:
This is the same pattern used in
select!
, so it is also impacted by it.I'm assuming this is some kind of miri false positive related to the
&Self
reference used inFusedFuture
, as the alternative seems to be thatpin-project
is unsound 😰.The text was updated successfully, but these errors were encountered: