2022-06-04 11:34:07 +00:00
|
|
|
error: call to `core::mem::swap` with a parameter derived from a raw pointer
|
|
|
|
--> $DIR/swap_ptr_to_ref_unfixable.rs:14:9
|
|
|
|
|
|
|
|
|
LL | core::mem::swap(addr_of_mut_to_ref!(x), &mut *y);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::swap-ptr-to-ref` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::swap_ptr_to_ref)]`
|
2022-06-04 11:34:07 +00:00
|
|
|
|
|
|
|
error: call to `core::mem::swap` with a parameter derived from a raw pointer
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/swap_ptr_to_ref_unfixable.rs:17:9
|
2022-06-04 11:34:07 +00:00
|
|
|
|
|
|
|
|
LL | core::mem::swap(&mut *y, addr_of_mut_to_ref!(x));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: call to `core::mem::swap` with a parameter derived from a raw pointer
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/swap_ptr_to_ref_unfixable.rs:19:9
|
2022-06-04 11:34:07 +00:00
|
|
|
|
|
|
|
|
LL | core::mem::swap(addr_of_mut_to_ref!(x), addr_of_mut_to_ref!(x));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|