]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/swap_ptr_to_ref_unfixable.stderr
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.git] / src / tools / clippy / tests / ui / swap_ptr_to_ref_unfixable.stderr
1 error: call to `core::mem::swap` with a parameter derived from a raw pointer
2   --> $DIR/swap_ptr_to_ref_unfixable.rs:14:9
3    |
4 LL |         core::mem::swap(addr_of_mut_to_ref!(x), &mut *y);
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::swap-ptr-to-ref` implied by `-D warnings`
8
9 error: call to `core::mem::swap` with a parameter derived from a raw pointer
10   --> $DIR/swap_ptr_to_ref_unfixable.rs:15:9
11    |
12 LL |         core::mem::swap(&mut *y, addr_of_mut_to_ref!(x));
13    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: call to `core::mem::swap` with a parameter derived from a raw pointer
16   --> $DIR/swap_ptr_to_ref_unfixable.rs:16:9
17    |
18 LL |         core::mem::swap(addr_of_mut_to_ref!(x), addr_of_mut_to_ref!(x));
19    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to 3 previous errors
22