2017-10-20 15:39:20 +00:00
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:44:18
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_rstr(rstr.as_ref());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `rstr`
|
|
|
|
|
|
2020-01-31 19:21:10 +00:00
|
|
|
note: the lint level is defined here
|
2019-03-15 06:29:12 +00:00
|
|
|
--> $DIR/useless_asref.rs:3:9
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | #![deny(clippy::useless_asref)]
|
2018-08-01 14:30:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:46:20
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_rslice(rslice.as_ref());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `rslice`
|
|
|
|
|
|
|
|
error: this call to `as_mut` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:50:21
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_mrslice(mrslice.as_mut());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
|
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:52:20
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_rslice(mrslice.as_ref());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
|
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:59:20
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_rslice(rrrrrslice.as_ref());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice`
|
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:61:18
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_rstr(rrrrrstr.as_ref());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr`
|
|
|
|
|
|
|
|
error: this call to `as_mut` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:66:21
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_mrslice(mrrrrrslice.as_mut());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
|
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:68:20
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_rslice(mrrrrrslice.as_ref());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
|
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:72:16
|
2017-10-20 15:39:20 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | foo_rrrrmr((&&&&MoreRef).as_ref());
|
2017-10-20 15:39:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)`
|
|
|
|
|
2017-10-21 17:42:35 +00:00
|
|
|
error: this call to `as_mut` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:122:13
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | foo_mrt(mrt.as_mut());
|
|
|
|
| ^^^^^^^^^^^^ help: try this: `mrt`
|
2017-10-21 17:42:35 +00:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2022-01-27 03:47:09 +00:00
|
|
|
--> $DIR/useless_asref.rs:124:12
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | foo_rt(mrt.as_ref());
|
|
|
|
| ^^^^^^^^^^^^ help: try this: `mrt`
|
2017-10-21 17:42:35 +00:00
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 11 previous errors
|
|
|
|
|