]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/useless_asref.stderr
Auto merge of #10094 - EricWu2003:increment-visitor-fix, r=xFrednet
[rust.git] / tests / ui / useless_asref.stderr
index 875d830a35341a8325e6f79d27c7b20c86391794..67ce8b64e0e3d21613b1a31099c04931336746c6 100644 (file)
@@ -1,74 +1,74 @@
 error: this call to `as_ref` does nothing
-  --> $DIR/useless_asref.rs:31:18
+  --> $DIR/useless_asref.rs:43:18
    |
-31 |         foo_rstr(rstr.as_ref());
+LL |         foo_rstr(rstr.as_ref());
    |                  ^^^^^^^^^^^^^ help: try this: `rstr`
    |
-note: lint level defined here
-  --> $DIR/useless_asref.rs:1:9
+note: the lint level is defined here
+  --> $DIR/useless_asref.rs:2:9
    |
-1  | #![deny(useless_asref)]
-   |         ^^^^^^^^^^^^^
+LL | #![deny(clippy::useless_asref)]
+   |         ^^^^^^^^^^^^^^^^^^^^^
 
 error: this call to `as_ref` does nothing
-  --> $DIR/useless_asref.rs:33:20
+  --> $DIR/useless_asref.rs:45:20
    |
-33 |         foo_rslice(rslice.as_ref());
+LL |         foo_rslice(rslice.as_ref());
    |                    ^^^^^^^^^^^^^^^ help: try this: `rslice`
 
 error: this call to `as_mut` does nothing
-  --> $DIR/useless_asref.rs:37:21
+  --> $DIR/useless_asref.rs:49:21
    |
-37 |         foo_mrslice(mrslice.as_mut());
+LL |         foo_mrslice(mrslice.as_mut());
    |                     ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
 
 error: this call to `as_ref` does nothing
-  --> $DIR/useless_asref.rs:39:20
+  --> $DIR/useless_asref.rs:51:20
    |
-39 |         foo_rslice(mrslice.as_ref());
+LL |         foo_rslice(mrslice.as_ref());
    |                    ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
 
 error: this call to `as_ref` does nothing
-  --> $DIR/useless_asref.rs:46:20
+  --> $DIR/useless_asref.rs:58:20
    |
-46 |         foo_rslice(rrrrrslice.as_ref());
+LL |         foo_rslice(rrrrrslice.as_ref());
    |                    ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice`
 
 error: this call to `as_ref` does nothing
-  --> $DIR/useless_asref.rs:48:18
+  --> $DIR/useless_asref.rs:60:18
    |
-48 |         foo_rstr(rrrrrstr.as_ref());
+LL |         foo_rstr(rrrrrstr.as_ref());
    |                  ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr`
 
 error: this call to `as_mut` does nothing
-  --> $DIR/useless_asref.rs:53:21
+  --> $DIR/useless_asref.rs:65:21
    |
-53 |         foo_mrslice(mrrrrrslice.as_mut());
+LL |         foo_mrslice(mrrrrrslice.as_mut());
    |                     ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
 
 error: this call to `as_ref` does nothing
-  --> $DIR/useless_asref.rs:55:20
+  --> $DIR/useless_asref.rs:67:20
    |
-55 |         foo_rslice(mrrrrrslice.as_ref());
+LL |         foo_rslice(mrrrrrslice.as_ref());
    |                    ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
 
 error: this call to `as_ref` does nothing
-  --> $DIR/useless_asref.rs:58:16
+  --> $DIR/useless_asref.rs:71:16
    |
-58 |     foo_rrrrmr((&&&&MoreRef).as_ref());
+LL |     foo_rrrrmr((&&&&MoreRef).as_ref());
    |                ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)`
 
 error: this call to `as_mut` does nothing
-   --> $DIR/useless_asref.rs:104:13
-    |
-104 |     foo_mrt(mrt.as_mut());
-    |             ^^^^^^^^^^^^ help: try this: `mrt`
+  --> $DIR/useless_asref.rs:121:13
+   |
+LL |     foo_mrt(mrt.as_mut());
+   |             ^^^^^^^^^^^^ help: try this: `mrt`
 
 error: this call to `as_ref` does nothing
-   --> $DIR/useless_asref.rs:106:12
-    |
-106 |     foo_rt(mrt.as_ref());
-    |            ^^^^^^^^^^^^ help: try this: `mrt`
+  --> $DIR/useless_asref.rs:123:12
+   |
+LL |     foo_rt(mrt.as_ref());
+   |            ^^^^^^^^^^^^ help: try this: `mrt`
 
 error: aborting due to 11 previous errors