- 
                Notifications
    
You must be signed in to change notification settings  - Fork 17
 
Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels