]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/crate_level_checks/no_std_swap.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / crate_level_checks / no_std_swap.stderr
index 7d8ea3f76b0f6d0cba225793392e71f8512d4bb3..01033246dd90b1af73c3c52808fdfb7eac8cef81 100644 (file)
@@ -2,11 +2,14 @@ error: this looks like you are trying to swap `a` and `b`
   --> $DIR/no_std_swap.rs:12:5
    |
 LL | /     a = b;
+LL | |
+LL | |
 LL | |     b = a;
    | |_________^ help: try: `core::mem::swap(&mut a, &mut b)`
    |
    = note: or maybe you should use `core::mem::replace`?
    = note: `-D clippy::almost-swapped` implied by `-D warnings`
+   = help: to override `-D warnings` add `#[allow(clippy::almost_swapped)]`
 
 error: aborting due to previous error