]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/useless_asref.stderr
Auto merge of #93873 - Stovent:big-ints, r=m-ou-se
[rust.git] / src / tools / clippy / tests / ui / useless_asref.stderr
1 error: this call to `as_ref` does nothing
2   --> $DIR/useless_asref.rs:44:18
3    |
4 LL |         foo_rstr(rstr.as_ref());
5    |                  ^^^^^^^^^^^^^ help: try this: `rstr`
6    |
7 note: the lint level is defined here
8   --> $DIR/useless_asref.rs:3:9
9    |
10 LL | #![deny(clippy::useless_asref)]
11    |         ^^^^^^^^^^^^^^^^^^^^^
12
13 error: this call to `as_ref` does nothing
14   --> $DIR/useless_asref.rs:46:20
15    |
16 LL |         foo_rslice(rslice.as_ref());
17    |                    ^^^^^^^^^^^^^^^ help: try this: `rslice`
18
19 error: this call to `as_mut` does nothing
20   --> $DIR/useless_asref.rs:50:21
21    |
22 LL |         foo_mrslice(mrslice.as_mut());
23    |                     ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
24
25 error: this call to `as_ref` does nothing
26   --> $DIR/useless_asref.rs:52:20
27    |
28 LL |         foo_rslice(mrslice.as_ref());
29    |                    ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
30
31 error: this call to `as_ref` does nothing
32   --> $DIR/useless_asref.rs:59:20
33    |
34 LL |         foo_rslice(rrrrrslice.as_ref());
35    |                    ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice`
36
37 error: this call to `as_ref` does nothing
38   --> $DIR/useless_asref.rs:61:18
39    |
40 LL |         foo_rstr(rrrrrstr.as_ref());
41    |                  ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr`
42
43 error: this call to `as_mut` does nothing
44   --> $DIR/useless_asref.rs:66:21
45    |
46 LL |         foo_mrslice(mrrrrrslice.as_mut());
47    |                     ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
48
49 error: this call to `as_ref` does nothing
50   --> $DIR/useless_asref.rs:68:20
51    |
52 LL |         foo_rslice(mrrrrrslice.as_ref());
53    |                    ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
54
55 error: this call to `as_ref` does nothing
56   --> $DIR/useless_asref.rs:72:16
57    |
58 LL |     foo_rrrrmr((&&&&MoreRef).as_ref());
59    |                ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)`
60
61 error: this call to `as_mut` does nothing
62   --> $DIR/useless_asref.rs:122:13
63    |
64 LL |     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:124:12
69    |
70 LL |     foo_rt(mrt.as_ref());
71    |            ^^^^^^^^^^^^ help: try this: `mrt`
72
73 error: aborting due to 11 previous errors
74