You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Benches also present this issue, but see tests (observed with rustc 1.72.0-nightly (2d0aa5768 2023-06-18)):
error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
--> src/tests.rs:81:29
|
81 | / ... *(&ret[work] as *const pallas::Scalar
82 | | ... as *mut pallas::Scalar) =
| |_________________________________________________^
|
= note: `#[deny(cast_ref_to_mut)]` on by default
error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
--> src/tests.rs:119:25
|
119 | / *(&rets[tid.fetch_add(1, Ordering::Relaxed)]
120 | | as *const pallas::Point
121 | | as *mut pallas::Point) = ret
| |__________________________________________________^
error: could not compile `pasta-msm` (lib test) due to 2 previous errors
The text was updated successfully, but these errors were encountered:
huitseeker
changed the title
Upcoming compilation error (in rust nightly, at )
Upcoming compilation error (in rust nightly)
Jun 19, 2023
See: rust-lang/rust#111567
Benches also present this issue, but see tests (observed with rustc 1.72.0-nightly (2d0aa5768 2023-06-18)):
The text was updated successfully, but these errors were encountered: