Open levs57 opened 1 month ago
rayon-core
depends on crossbeam-deque = "0.8.1"
, i.e. at least version 0.8.1 or semver-compatible newer versions. As indicated by your backtrace, version 0.8.5 was used which is indeed the latest release for crossbeam-deque
and transitively pulls in crossbeam-epoch
version 0.9.18, also the latest release for that crate.
So the error you see is not due to an outdated dependency and possibly also unrelated to pointer-to-integer casts. (Miri complains about the stacked borrows model being violated, not provenance issues.)
Could you provide some minimal example so others can reproduce the issue including the flags passed to Miri?
I am testing my code in MIRI, and apparently a version of crossbeam used by rayon (0.8.0) uses integer-pointer casts, which are discouraged.
I'm observing the following error:
I think it should be fixed (see this issue: https://github.com/crossbeam-rs/crossbeam/issues/957 , resolved by this pull https://github.com/crossbeam-rs/crossbeam/pull/796 ); but I think that rayon uses earlier version of crossbeam.