|
1 | 1 | error: deref which would be done by auto-deref
|
2 |
| - --> $DIR/explicit_auto_deref.rs:61:20 |
| 2 | + --> $DIR/explicit_auto_deref.rs:63:20 |
3 | 3 | |
|
4 | 4 | LL | let _: &str = &*s;
|
5 | 5 | | ^^ help: try this: `s`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::explicit-auto-deref` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: deref which would be done by auto-deref
|
10 |
| - --> $DIR/explicit_auto_deref.rs:65:12 |
| 10 | + --> $DIR/explicit_auto_deref.rs:67:12 |
11 | 11 | |
|
12 | 12 | LL | f_str(&*s);
|
13 | 13 | | ^^ help: try this: `s`
|
14 | 14 |
|
15 | 15 | error: deref which would be done by auto-deref
|
16 |
| - --> $DIR/explicit_auto_deref.rs:69:14 |
| 16 | + --> $DIR/explicit_auto_deref.rs:71:14 |
17 | 17 | |
|
18 | 18 | LL | f_str_t(&*s, &*s); // Don't lint second param.
|
19 | 19 | | ^^ help: try this: `s`
|
20 | 20 |
|
21 | 21 | error: deref which would be done by auto-deref
|
22 |
| - --> $DIR/explicit_auto_deref.rs:72:25 |
| 22 | + --> $DIR/explicit_auto_deref.rs:74:25 |
23 | 23 | |
|
24 | 24 | LL | let _: &Box<i32> = &**b;
|
25 | 25 | | ^^^ help: try this: `b`
|
26 | 26 |
|
27 | 27 | error: deref which would be done by auto-deref
|
28 |
| - --> $DIR/explicit_auto_deref.rs:78:8 |
| 28 | + --> $DIR/explicit_auto_deref.rs:80:8 |
29 | 29 | |
|
30 | 30 | LL | c(&*s);
|
31 | 31 | | ^^ help: try this: `s`
|
32 | 32 |
|
33 | 33 | error: deref which would be done by auto-deref
|
34 |
| - --> $DIR/explicit_auto_deref.rs:84:9 |
| 34 | + --> $DIR/explicit_auto_deref.rs:86:9 |
35 | 35 | |
|
36 | 36 | LL | &**x
|
37 | 37 | | ^^^^ help: try this: `x`
|
38 | 38 |
|
39 | 39 | error: deref which would be done by auto-deref
|
40 |
| - --> $DIR/explicit_auto_deref.rs:88:11 |
| 40 | + --> $DIR/explicit_auto_deref.rs:90:11 |
41 | 41 | |
|
42 | 42 | LL | { &**x }
|
43 | 43 | | ^^^^ help: try this: `x`
|
44 | 44 |
|
45 | 45 | error: deref which would be done by auto-deref
|
46 |
| - --> $DIR/explicit_auto_deref.rs:92:9 |
| 46 | + --> $DIR/explicit_auto_deref.rs:94:9 |
47 | 47 | |
|
48 | 48 | LL | &**{ x }
|
49 | 49 | | ^^^^^^^^ help: try this: `{ x }`
|
50 | 50 |
|
51 | 51 | error: deref which would be done by auto-deref
|
52 |
| - --> $DIR/explicit_auto_deref.rs:96:9 |
| 52 | + --> $DIR/explicit_auto_deref.rs:98:9 |
53 | 53 | |
|
54 | 54 | LL | &***x
|
55 | 55 | | ^^^^^ help: try this: `x`
|
56 | 56 |
|
57 | 57 | error: deref which would be done by auto-deref
|
58 |
| - --> $DIR/explicit_auto_deref.rs:113:13 |
| 58 | + --> $DIR/explicit_auto_deref.rs:115:13 |
59 | 59 | |
|
60 | 60 | LL | f1(&*x);
|
61 | 61 | | ^^ help: try this: `x`
|
62 | 62 |
|
63 | 63 | error: deref which would be done by auto-deref
|
64 |
| - --> $DIR/explicit_auto_deref.rs:114:13 |
| 64 | + --> $DIR/explicit_auto_deref.rs:116:13 |
65 | 65 | |
|
66 | 66 | LL | f2(&*x);
|
67 | 67 | | ^^ help: try this: `x`
|
68 | 68 |
|
69 | 69 | error: deref which would be done by auto-deref
|
70 |
| - --> $DIR/explicit_auto_deref.rs:115:13 |
| 70 | + --> $DIR/explicit_auto_deref.rs:117:13 |
71 | 71 | |
|
72 | 72 | LL | f3(&*x);
|
73 | 73 | | ^^ help: try this: `x`
|
74 | 74 |
|
75 | 75 | error: deref which would be done by auto-deref
|
76 |
| - --> $DIR/explicit_auto_deref.rs:116:28 |
| 76 | + --> $DIR/explicit_auto_deref.rs:118:28 |
77 | 77 | |
|
78 | 78 | LL | f4.callable_str()(&*x);
|
79 | 79 | | ^^ help: try this: `x`
|
80 | 80 |
|
81 | 81 | error: deref which would be done by auto-deref
|
82 |
| - --> $DIR/explicit_auto_deref.rs:117:13 |
| 82 | + --> $DIR/explicit_auto_deref.rs:119:13 |
83 | 83 | |
|
84 | 84 | LL | f5(&*x);
|
85 | 85 | | ^^ help: try this: `x`
|
86 | 86 |
|
87 | 87 | error: deref which would be done by auto-deref
|
88 |
| - --> $DIR/explicit_auto_deref.rs:118:13 |
| 88 | + --> $DIR/explicit_auto_deref.rs:120:13 |
89 | 89 | |
|
90 | 90 | LL | f6(&*x);
|
91 | 91 | | ^^ help: try this: `x`
|
92 | 92 |
|
93 | 93 | error: deref which would be done by auto-deref
|
94 |
| - --> $DIR/explicit_auto_deref.rs:119:28 |
| 94 | + --> $DIR/explicit_auto_deref.rs:121:28 |
95 | 95 | |
|
96 | 96 | LL | f7.callable_str()(&*x);
|
97 | 97 | | ^^ help: try this: `x`
|
98 | 98 |
|
99 | 99 | error: deref which would be done by auto-deref
|
100 |
| - --> $DIR/explicit_auto_deref.rs:120:26 |
| 100 | + --> $DIR/explicit_auto_deref.rs:122:26 |
101 | 101 | |
|
102 | 102 | LL | f8.callable_t()(&*x);
|
103 | 103 | | ^^ help: try this: `x`
|
104 | 104 |
|
105 | 105 | error: deref which would be done by auto-deref
|
106 |
| - --> $DIR/explicit_auto_deref.rs:121:13 |
| 106 | + --> $DIR/explicit_auto_deref.rs:123:13 |
107 | 107 | |
|
108 | 108 | LL | f9(&*x);
|
109 | 109 | | ^^ help: try this: `x`
|
110 | 110 |
|
111 | 111 | error: deref which would be done by auto-deref
|
112 |
| - --> $DIR/explicit_auto_deref.rs:122:14 |
| 112 | + --> $DIR/explicit_auto_deref.rs:124:14 |
113 | 113 | |
|
114 | 114 | LL | f10(&*x);
|
115 | 115 | | ^^ help: try this: `x`
|
116 | 116 |
|
117 | 117 | error: deref which would be done by auto-deref
|
118 |
| - --> $DIR/explicit_auto_deref.rs:123:27 |
| 118 | + --> $DIR/explicit_auto_deref.rs:125:27 |
119 | 119 | |
|
120 | 120 | LL | f11.callable_t()(&*x);
|
121 | 121 | | ^^ help: try this: `x`
|
122 | 122 |
|
123 | 123 | error: deref which would be done by auto-deref
|
124 |
| - --> $DIR/explicit_auto_deref.rs:127:17 |
| 124 | + --> $DIR/explicit_auto_deref.rs:129:17 |
125 | 125 | |
|
126 | 126 | LL | let _ = S1(&*s);
|
127 | 127 | | ^^ help: try this: `s`
|
128 | 128 |
|
129 | 129 | error: deref which would be done by auto-deref
|
130 |
| - --> $DIR/explicit_auto_deref.rs:132:22 |
| 130 | + --> $DIR/explicit_auto_deref.rs:134:22 |
131 | 131 | |
|
132 | 132 | LL | let _ = S2 { s: &*s };
|
133 | 133 | | ^^ help: try this: `s`
|
134 | 134 |
|
135 | 135 | error: deref which would be done by auto-deref
|
136 |
| - --> $DIR/explicit_auto_deref.rs:148:30 |
| 136 | + --> $DIR/explicit_auto_deref.rs:150:30 |
137 | 137 | |
|
138 | 138 | LL | let _ = Self::S1(&**s);
|
139 | 139 | | ^^^^ help: try this: `s`
|
140 | 140 |
|
141 | 141 | error: deref which would be done by auto-deref
|
142 |
| - --> $DIR/explicit_auto_deref.rs:149:35 |
| 142 | + --> $DIR/explicit_auto_deref.rs:151:35 |
143 | 143 | |
|
144 | 144 | LL | let _ = Self::S2 { s: &**s };
|
145 | 145 | | ^^^^ help: try this: `s`
|
146 | 146 |
|
147 | 147 | error: deref which would be done by auto-deref
|
148 |
| - --> $DIR/explicit_auto_deref.rs:152:21 |
| 148 | + --> $DIR/explicit_auto_deref.rs:154:21 |
149 | 149 | |
|
150 | 150 | LL | let _ = E1::S1(&*s);
|
151 | 151 | | ^^ help: try this: `s`
|
152 | 152 |
|
153 | 153 | error: deref which would be done by auto-deref
|
154 |
| - --> $DIR/explicit_auto_deref.rs:153:26 |
| 154 | + --> $DIR/explicit_auto_deref.rs:155:26 |
155 | 155 | |
|
156 | 156 | LL | let _ = E1::S2 { s: &*s };
|
157 | 157 | | ^^ help: try this: `s`
|
|
0 commit comments