]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mut_mut.stderr
Merge pull request #2977 from flip1995/tool_lints
[rust.git] / tests / ui / mut_mut.stderr
index 2149d3d88240c35063467c137fdd6d328f880d80..88bd2f729af13d52acdd8bce9a95dfe1b59c2dc8 100644 (file)
@@ -4,16 +4,12 @@ error: generally you want to avoid `&mut &mut _` if possible
 10 | fn fun(x : &mut &mut u32) -> bool {
    |            ^^^^^^^^^^^^^
    |
-note: lint level defined here
-  --> $DIR/mut_mut.rs:5:9
-   |
-5  | #![deny(mut_mut)]
-   |         ^^^^^^^
+   = note: `-D clippy::mut-mut` implied by `-D warnings`
 
 error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:25:17
+  --> $DIR/mut_mut.rs:24:17
    |
-25 |     let mut x = &mut &mut 1u32;
+24 |     let mut x = &mut &mut 1u32;
    |                 ^^^^^^^^^^^^^^
 
 error: generally you want to avoid `&mut &mut _` if possible
@@ -22,68 +18,44 @@ error: generally you want to avoid `&mut &mut _` if possible
 19 |     ($p:expr) => { &mut $p }
    |                    ^^^^^^^
 ...
-49 |     let mut z = mut_ptr!(&mut 3u32);
+39 |     let mut z = mut_ptr!(&mut 3u32);
    |                 ------------------- in this macro invocation
 
 error: this expression mutably borrows a mutable reference. Consider reborrowing
-  --> $DIR/mut_mut.rs:27:21
+  --> $DIR/mut_mut.rs:26:21
    |
-27 |         let mut y = &mut x;
+26 |         let mut y = &mut x;
    |                     ^^^^^^
 
 error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:31:17
-   |
-31 |         let y : &mut &mut u32 = &mut &mut 2;
-   |                 ^^^^^^^^^^^^^
-
-error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:31:33
+  --> $DIR/mut_mut.rs:30:33
    |
-31 |         let y : &mut &mut u32 = &mut &mut 2;
+30 |         let y : &mut &mut u32 = &mut &mut 2;
    |                                 ^^^^^^^^^^^
 
 error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:31:17
+  --> $DIR/mut_mut.rs:30:17
    |
-31 |         let y : &mut &mut u32 = &mut &mut 2;
+30 |         let y : &mut &mut u32 = &mut &mut 2;
    |                 ^^^^^^^^^^^^^
 
 error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:39:17
-   |
-39 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
-   |                 ^^^^^^^^^^^^^^^^^^
-
-error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:39:22
+  --> $DIR/mut_mut.rs:35:38
    |
-39 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
-   |                      ^^^^^^^^^^^^^
-
-error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:39:38
-   |
-39 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
+35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
    |                                      ^^^^^^^^^^^^^^^^
 
 error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:39:17
+  --> $DIR/mut_mut.rs:35:17
    |
-39 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
+35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
    |                 ^^^^^^^^^^^^^^^^^^
 
 error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:39:22
-   |
-39 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
-   |                      ^^^^^^^^^^^^^
-
-error: generally you want to avoid `&mut &mut _` if possible
-  --> $DIR/mut_mut.rs:39:22
+  --> $DIR/mut_mut.rs:35:22
    |
-39 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
+35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
    |                      ^^^^^^^^^^^^^
 
-error: aborting due to 13 previous errors
+error: aborting due to 9 previous errors