2017-10-20 11:39:20 -04:00
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:47:18
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_rstr(rstr.as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^ help: try: `rstr`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2020-01-31 20:21:10 +01:00
|
|
|
note: the lint level is defined here
|
2022-10-02 15:13:22 -04:00
|
|
|
--> $DIR/useless_asref.rs:2:9
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | #![deny(clippy::useless_asref)]
|
2018-08-01 16:30:44 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:49:20
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_rslice(rslice.as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `rslice`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_mut` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:53:21
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_mrslice(mrslice.as_mut());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `mrslice`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:55:20
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_rslice(mrslice.as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `mrslice`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:62:20
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_rslice(rrrrrslice.as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try: `rrrrrslice`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:64:18
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_rstr(rrrrrstr.as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `rrrrrstr`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_mut` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:69:21
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_mrslice(mrrrrrslice.as_mut());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try: `mrrrrrslice`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:71:20
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_rslice(mrrrrrslice.as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try: `mrrrrrslice`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:75:16
|
2017-10-20 11:39:20 -04:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | foo_rrrrmr((&&&&MoreRef).as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&&&&MoreRef)`
|
2017-10-20 11:39:20 -04:00
|
|
|
|
2017-10-21 13:42:35 -04:00
|
|
|
error: this call to `as_mut` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:125:13
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | foo_mrt(mrt.as_mut());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^ help: try: `mrt`
|
2017-10-21 13:42:35 -04:00
|
|
|
|
|
|
|
error: this call to `as_ref` does nothing
|
2023-06-15 17:24:39 +02:00
|
|
|
--> $DIR/useless_asref.rs:127:12
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | foo_rt(mrt.as_ref());
|
2023-07-01 07:08:01 -04:00
|
|
|
| ^^^^^^^^^^^^ help: try: `mrt`
|
2017-10-21 13:42:35 -04:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 11 previous errors
|
|
|
|
|