1
1
error: this call to `as_ref` does nothing
2
- --> $DIR/useless_asref.rs:29 :18
2
+ --> $DIR/useless_asref.rs:31 :18
3
3
|
4
- 29 | foo_rstr(rstr.as_ref());
4
+ 31 | foo_rstr(rstr.as_ref());
5
5
| ^^^^^^^^^^^^^ help: try this: `rstr`
6
6
|
7
7
note: lint level defined here
@@ -11,50 +11,62 @@ note: lint level defined here
11
11
| ^^^^^^^^^^^^^
12
12
13
13
error: this call to `as_ref` does nothing
14
- --> $DIR/useless_asref.rs:31 :20
14
+ --> $DIR/useless_asref.rs:33 :20
15
15
|
16
- 31 | foo_rslice(rslice.as_ref());
16
+ 33 | foo_rslice(rslice.as_ref());
17
17
| ^^^^^^^^^^^^^^^ help: try this: `rslice`
18
18
19
19
error: this call to `as_mut` does nothing
20
- --> $DIR/useless_asref.rs:35 :21
20
+ --> $DIR/useless_asref.rs:37 :21
21
21
|
22
- 35 | foo_mrslice(mrslice.as_mut());
22
+ 37 | foo_mrslice(mrslice.as_mut());
23
23
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
24
24
25
25
error: this call to `as_ref` does nothing
26
- --> $DIR/useless_asref.rs:37 :20
26
+ --> $DIR/useless_asref.rs:39 :20
27
27
|
28
- 37 | foo_rslice(mrslice.as_ref());
28
+ 39 | foo_rslice(mrslice.as_ref());
29
29
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
30
30
31
31
error: this call to `as_ref` does nothing
32
- --> $DIR/useless_asref.rs:44 :20
32
+ --> $DIR/useless_asref.rs:46 :20
33
33
|
34
- 44 | foo_rslice(rrrrrslice.as_ref());
34
+ 46 | foo_rslice(rrrrrslice.as_ref());
35
35
| ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice`
36
36
37
37
error: this call to `as_ref` does nothing
38
- --> $DIR/useless_asref.rs:46 :18
38
+ --> $DIR/useless_asref.rs:48 :18
39
39
|
40
- 46 | foo_rstr(rrrrrstr.as_ref());
40
+ 48 | foo_rstr(rrrrrstr.as_ref());
41
41
| ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr`
42
42
43
43
error: this call to `as_mut` does nothing
44
- --> $DIR/useless_asref.rs:51 :21
44
+ --> $DIR/useless_asref.rs:53 :21
45
45
|
46
- 51 | foo_mrslice(mrrrrrslice.as_mut());
46
+ 53 | foo_mrslice(mrrrrrslice.as_mut());
47
47
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
48
48
49
49
error: this call to `as_ref` does nothing
50
- --> $DIR/useless_asref.rs:53 :20
50
+ --> $DIR/useless_asref.rs:55 :20
51
51
|
52
- 53 | foo_rslice(mrrrrrslice.as_ref());
52
+ 55 | foo_rslice(mrrrrrslice.as_ref());
53
53
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
54
54
55
55
error: this call to `as_ref` does nothing
56
- --> $DIR/useless_asref.rs:56 :16
56
+ --> $DIR/useless_asref.rs:58 :16
57
57
|
58
- 56 | foo_rrrrmr((&&&&MoreRef).as_ref());
58
+ 58 | foo_rrrrmr((&&&&MoreRef).as_ref());
59
59
| ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)`
60
60
61
+ error: this call to `as_mut` does nothing
62
+ --> $DIR/useless_asref.rs:104:13
63
+ |
64
+ 104 | foo_mrt(mrt.as_mut());
65
+ | ^^^^^^^^^^^^ help: try this: `mrt`
66
+
67
+ error: this call to `as_ref` does nothing
68
+ --> $DIR/useless_asref.rs:106:12
69
+ |
70
+ 106 | foo_rt(mrt.as_ref());
71
+ | ^^^^^^^^^^^^ help: try this: `mrt`
72
+
0 commit comments