|
1 | 1 | error: parameter is only used in recursion
|
2 |
| - --> tests/ui/only_used_in_recursion.rs:11:27 |
| 2 | + --> tests/ui/only_used_in_recursion.rs:12:27 |
3 | 3 | |
|
4 | 4 | LL | fn _one_unused(flag: u32, a: usize) -> usize {
|
5 | 5 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
6 | 6 | |
|
7 | 7 | note: parameter used here
|
8 |
| - --> tests/ui/only_used_in_recursion.rs:14:53 |
| 8 | + --> tests/ui/only_used_in_recursion.rs:15:53 |
9 | 9 | |
|
10 | 10 | LL | if flag == 0 { 0 } else { _one_unused(flag - 1, a) }
|
11 | 11 | | ^
|
12 | 12 | = note: `-D clippy::only-used-in-recursion` implied by `-D warnings`
|
13 | 13 | = help: to override `-D warnings` add `#[allow(clippy::only_used_in_recursion)]`
|
14 | 14 |
|
15 | 15 | error: parameter is only used in recursion
|
16 |
| - --> tests/ui/only_used_in_recursion.rs:17:27 |
| 16 | + --> tests/ui/only_used_in_recursion.rs:18:27 |
17 | 17 | |
|
18 | 18 | LL | fn _two_unused(flag: u32, a: u32, b: i32) -> usize {
|
19 | 19 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
20 | 20 | |
|
21 | 21 | note: parameter used here
|
22 |
| - --> tests/ui/only_used_in_recursion.rs:21:53 |
| 22 | + --> tests/ui/only_used_in_recursion.rs:22:53 |
23 | 23 | |
|
24 | 24 | LL | if flag == 0 { 0 } else { _two_unused(flag - 1, a, b) }
|
25 | 25 | | ^
|
26 | 26 |
|
27 | 27 | error: parameter is only used in recursion
|
28 |
| - --> tests/ui/only_used_in_recursion.rs:17:35 |
| 28 | + --> tests/ui/only_used_in_recursion.rs:18:35 |
29 | 29 | |
|
30 | 30 | LL | fn _two_unused(flag: u32, a: u32, b: i32) -> usize {
|
31 | 31 | | ^ help: if this is intentional, prefix it with an underscore: `_b`
|
32 | 32 | |
|
33 | 33 | note: parameter used here
|
34 |
| - --> tests/ui/only_used_in_recursion.rs:21:56 |
| 34 | + --> tests/ui/only_used_in_recursion.rs:22:56 |
35 | 35 | |
|
36 | 36 | LL | if flag == 0 { 0 } else { _two_unused(flag - 1, a, b) }
|
37 | 37 | | ^
|
38 | 38 |
|
39 | 39 | error: parameter is only used in recursion
|
40 |
| - --> tests/ui/only_used_in_recursion.rs:24:26 |
| 40 | + --> tests/ui/only_used_in_recursion.rs:25:26 |
41 | 41 | |
|
42 | 42 | LL | fn _with_calc(flag: u32, a: i64) -> usize {
|
43 | 43 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
44 | 44 | |
|
45 | 45 | note: parameter used here
|
46 |
| - --> tests/ui/only_used_in_recursion.rs:30:32 |
| 46 | + --> tests/ui/only_used_in_recursion.rs:31:32 |
47 | 47 | |
|
48 | 48 | LL | _with_calc(flag - 1, (-a + 10) * 5)
|
49 | 49 | | ^
|
50 | 50 |
|
51 | 51 | error: parameter is only used in recursion
|
52 |
| - --> tests/ui/only_used_in_recursion.rs:39:33 |
| 52 | + --> tests/ui/only_used_in_recursion.rs:40:33 |
53 | 53 | |
|
54 | 54 | LL | fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize {
|
55 | 55 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
56 | 56 | |
|
57 | 57 | note: parameter used here
|
58 |
| - --> tests/ui/only_used_in_recursion.rs:46:38 |
| 58 | + --> tests/ui/only_used_in_recursion.rs:47:38 |
59 | 59 | |
|
60 | 60 | LL | _used_with_unused(flag - 1, -a, a + b)
|
61 | 61 | | ^ ^
|
62 | 62 |
|
63 | 63 | error: parameter is only used in recursion
|
64 |
| - --> tests/ui/only_used_in_recursion.rs:39:41 |
| 64 | + --> tests/ui/only_used_in_recursion.rs:40:41 |
65 | 65 | |
|
66 | 66 | LL | fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize {
|
67 | 67 | | ^ help: if this is intentional, prefix it with an underscore: `_b`
|
68 | 68 | |
|
69 | 69 | note: parameter used here
|
70 |
| - --> tests/ui/only_used_in_recursion.rs:46:45 |
| 70 | + --> tests/ui/only_used_in_recursion.rs:47:45 |
71 | 71 | |
|
72 | 72 | LL | _used_with_unused(flag - 1, -a, a + b)
|
73 | 73 | | ^
|
74 | 74 |
|
75 | 75 | error: parameter is only used in recursion
|
76 |
| - --> tests/ui/only_used_in_recursion.rs:50:35 |
| 76 | + --> tests/ui/only_used_in_recursion.rs:51:35 |
77 | 77 | |
|
78 | 78 | LL | fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize {
|
79 | 79 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
80 | 80 | |
|
81 | 81 | note: parameter used here
|
82 |
| - --> tests/ui/only_used_in_recursion.rs:57:39 |
| 82 | + --> tests/ui/only_used_in_recursion.rs:58:39 |
83 | 83 | |
|
84 | 84 | LL | _codependent_unused(flag - 1, a * b, a + b)
|
85 | 85 | | ^ ^
|
86 | 86 |
|
87 | 87 | error: parameter is only used in recursion
|
88 |
| - --> tests/ui/only_used_in_recursion.rs:50:43 |
| 88 | + --> tests/ui/only_used_in_recursion.rs:51:43 |
89 | 89 | |
|
90 | 90 | LL | fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize {
|
91 | 91 | | ^ help: if this is intentional, prefix it with an underscore: `_b`
|
92 | 92 | |
|
93 | 93 | note: parameter used here
|
94 |
| - --> tests/ui/only_used_in_recursion.rs:57:43 |
| 94 | + --> tests/ui/only_used_in_recursion.rs:58:43 |
95 | 95 | |
|
96 | 96 | LL | _codependent_unused(flag - 1, a * b, a + b)
|
97 | 97 | | ^ ^
|
98 | 98 |
|
99 | 99 | error: parameter is only used in recursion
|
100 |
| - --> tests/ui/only_used_in_recursion.rs:61:30 |
| 100 | + --> tests/ui/only_used_in_recursion.rs:62:30 |
101 | 101 | |
|
102 | 102 | LL | fn _not_primitive(flag: u32, b: String) -> usize {
|
103 | 103 | | ^ help: if this is intentional, prefix it with an underscore: `_b`
|
104 | 104 | |
|
105 | 105 | note: parameter used here
|
106 |
| - --> tests/ui/only_used_in_recursion.rs:64:56 |
| 106 | + --> tests/ui/only_used_in_recursion.rs:65:56 |
107 | 107 | |
|
108 | 108 | LL | if flag == 0 { 0 } else { _not_primitive(flag - 1, b) }
|
109 | 109 | | ^
|
110 | 110 |
|
111 | 111 | error: parameter is only used in recursion
|
112 |
| - --> tests/ui/only_used_in_recursion.rs:70:29 |
| 112 | + --> tests/ui/only_used_in_recursion.rs:71:29 |
113 | 113 | |
|
114 | 114 | LL | fn _method(flag: usize, a: usize) -> usize {
|
115 | 115 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
116 | 116 | |
|
117 | 117 | note: parameter used here
|
118 |
| - --> tests/ui/only_used_in_recursion.rs:73:59 |
| 118 | + --> tests/ui/only_used_in_recursion.rs:74:59 |
119 | 119 | |
|
120 | 120 | LL | if flag == 0 { 0 } else { Self::_method(flag - 1, a) }
|
121 | 121 | | ^
|
122 | 122 |
|
123 |
| -error: parameter is only used in recursion |
124 |
| - --> tests/ui/only_used_in_recursion.rs:76:22 |
| 123 | +error: `self` is only used in recursion |
| 124 | + --> tests/ui/only_used_in_recursion.rs:77:22 |
125 | 125 | |
|
126 | 126 | LL | fn _method_self(&self, flag: usize, a: usize) -> usize {
|
127 | 127 | | ^^^^
|
128 | 128 | |
|
129 | 129 | note: parameter used here
|
130 |
| - --> tests/ui/only_used_in_recursion.rs:80:35 |
| 130 | + --> tests/ui/only_used_in_recursion.rs:81:35 |
131 | 131 | |
|
132 | 132 | LL | if flag == 0 { 0 } else { self._method_self(flag - 1, a) }
|
133 | 133 | | ^^^^
|
| 134 | + = note: `-D clippy::self-only-used-in-recursion` implied by `-D warnings` |
| 135 | + = help: to override `-D warnings` add `#[allow(clippy::self_only_used_in_recursion)]` |
134 | 136 |
|
135 | 137 | error: parameter is only used in recursion
|
136 |
| - --> tests/ui/only_used_in_recursion.rs:76:41 |
| 138 | + --> tests/ui/only_used_in_recursion.rs:77:41 |
137 | 139 | |
|
138 | 140 | LL | fn _method_self(&self, flag: usize, a: usize) -> usize {
|
139 | 141 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
140 | 142 | |
|
141 | 143 | note: parameter used here
|
142 |
| - --> tests/ui/only_used_in_recursion.rs:80:63 |
| 144 | + --> tests/ui/only_used_in_recursion.rs:81:63 |
143 | 145 | |
|
144 | 146 | LL | if flag == 0 { 0 } else { self._method_self(flag - 1, a) }
|
145 | 147 | | ^
|
146 | 148 |
|
147 | 149 | error: parameter is only used in recursion
|
148 |
| - --> tests/ui/only_used_in_recursion.rs:90:26 |
| 150 | + --> tests/ui/only_used_in_recursion.rs:91:26 |
149 | 151 | |
|
150 | 152 | LL | fn method(flag: u32, a: usize) -> usize {
|
151 | 153 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
152 | 154 | |
|
153 | 155 | note: parameter used here
|
154 |
| - --> tests/ui/only_used_in_recursion.rs:93:58 |
| 156 | + --> tests/ui/only_used_in_recursion.rs:94:58 |
155 | 157 | |
|
156 | 158 | LL | if flag == 0 { 0 } else { Self::method(flag - 1, a) }
|
157 | 159 | | ^
|
158 | 160 |
|
159 | 161 | error: parameter is only used in recursion
|
160 |
| - --> tests/ui/only_used_in_recursion.rs:96:38 |
| 162 | + --> tests/ui/only_used_in_recursion.rs:97:38 |
161 | 163 | |
|
162 | 164 | LL | fn method_self(&self, flag: u32, a: usize) -> usize {
|
163 | 165 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
164 | 166 | |
|
165 | 167 | note: parameter used here
|
166 |
| - --> tests/ui/only_used_in_recursion.rs:99:62 |
| 168 | + --> tests/ui/only_used_in_recursion.rs:100:62 |
167 | 169 | |
|
168 | 170 | LL | if flag == 0 { 0 } else { self.method_self(flag - 1, a) }
|
169 | 171 | | ^
|
170 | 172 |
|
171 | 173 | error: parameter is only used in recursion
|
172 |
| - --> tests/ui/only_used_in_recursion.rs:124:26 |
| 174 | + --> tests/ui/only_used_in_recursion.rs:125:26 |
173 | 175 | |
|
174 | 176 | LL | fn method(flag: u32, a: usize) -> usize {
|
175 | 177 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
176 | 178 | |
|
177 | 179 | note: parameter used here
|
178 |
| - --> tests/ui/only_used_in_recursion.rs:127:58 |
| 180 | + --> tests/ui/only_used_in_recursion.rs:128:58 |
179 | 181 | |
|
180 | 182 | LL | if flag == 0 { 0 } else { Self::method(flag - 1, a) }
|
181 | 183 | | ^
|
182 | 184 |
|
183 | 185 | error: parameter is only used in recursion
|
184 |
| - --> tests/ui/only_used_in_recursion.rs:130:38 |
| 186 | + --> tests/ui/only_used_in_recursion.rs:131:38 |
185 | 187 | |
|
186 | 188 | LL | fn method_self(&self, flag: u32, a: usize) -> usize {
|
187 | 189 | | ^ help: if this is intentional, prefix it with an underscore: `_a`
|
188 | 190 | |
|
189 | 191 | note: parameter used here
|
190 |
| - --> tests/ui/only_used_in_recursion.rs:133:62 |
| 192 | + --> tests/ui/only_used_in_recursion.rs:134:62 |
191 | 193 | |
|
192 | 194 | LL | if flag == 0 { 0 } else { self.method_self(flag - 1, a) }
|
193 | 195 | | ^
|
|
0 commit comments