@@ -175,143 +175,127 @@ error: `let` expressions are not supported here
175175LL | () if (let 0 = 1) => {}
176176 | ^^^^^^^^^
177177 |
178- = note: only supported directly in conditions of `if`- and `while`-expressions
179- = note: as well as when nested within `&&` and parenthesis in those conditions
178+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
180179
181180error: `let` expressions are not supported here
182181 --> $DIR/feature-gate.rs:14:18
183182 |
184183LL | () if (((let 0 = 1))) => {}
185184 | ^^^^^^^^^
186185 |
187- = note: only supported directly in conditions of `if`- and `while`-expressions
188- = note: as well as when nested within `&&` and parenthesis in those conditions
186+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
189187
190188error: `let` expressions are not supported here
191189 --> $DIR/feature-gate.rs:18:23
192190 |
193191LL | () if true && let 0 = 1 => {}
194192 | ^^^^^^^^^
195193 |
196- = note: only supported directly in conditions of `if`- and `while`-expressions
197- = note: as well as when nested within `&&` and parenthesis in those conditions
194+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
198195
199196error: `let` expressions are not supported here
200197 --> $DIR/feature-gate.rs:22:15
201198 |
202199LL | () if let 0 = 1 && true => {}
203200 | ^^^^^^^^^
204201 |
205- = note: only supported directly in conditions of `if`- and `while`-expressions
206- = note: as well as when nested within `&&` and parenthesis in those conditions
202+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
207203
208204error: `let` expressions are not supported here
209205 --> $DIR/feature-gate.rs:26:16
210206 |
211207LL | () if (let 0 = 1) && true => {}
212208 | ^^^^^^^^^
213209 |
214- = note: only supported directly in conditions of `if`- and `while`-expressions
215- = note: as well as when nested within `&&` and parenthesis in those conditions
210+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
216211
217212error: `let` expressions are not supported here
218213 --> $DIR/feature-gate.rs:30:24
219214 |
220215LL | () if true && (let 0 = 1) => {}
221216 | ^^^^^^^^^
222217 |
223- = note: only supported directly in conditions of `if`- and `while`-expressions
224- = note: as well as when nested within `&&` and parenthesis in those conditions
218+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
225219
226220error: `let` expressions are not supported here
227221 --> $DIR/feature-gate.rs:34:16
228222 |
229223LL | () if (let 0 = 1) && (let 0 = 1) => {}
230224 | ^^^^^^^^^
231225 |
232- = note: only supported directly in conditions of `if`- and `while`-expressions
233- = note: as well as when nested within `&&` and parenthesis in those conditions
226+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
234227
235228error: `let` expressions are not supported here
236229 --> $DIR/feature-gate.rs:34:31
237230 |
238231LL | () if (let 0 = 1) && (let 0 = 1) => {}
239232 | ^^^^^^^^^
240233 |
241- = note: only supported directly in conditions of `if`- and `while`-expressions
242- = note: as well as when nested within `&&` and parenthesis in those conditions
234+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
243235
244236error: `let` expressions are not supported here
245237 --> $DIR/feature-gate.rs:40:15
246238 |
247239LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
248240 | ^^^^^^^^^
249241 |
250- = note: only supported directly in conditions of `if`- and `while`-expressions
251- = note: as well as when nested within `&&` and parenthesis in those conditions
242+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
252243
253244error: `let` expressions are not supported here
254245 --> $DIR/feature-gate.rs:40:28
255246 |
256247LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
257248 | ^^^^^^^^^
258249 |
259- = note: only supported directly in conditions of `if`- and `while`-expressions
260- = note: as well as when nested within `&&` and parenthesis in those conditions
250+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
261251
262252error: `let` expressions are not supported here
263253 --> $DIR/feature-gate.rs:40:42
264254 |
265255LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
266256 | ^^^^^^^^^
267257 |
268- = note: only supported directly in conditions of `if`- and `while`-expressions
269- = note: as well as when nested within `&&` and parenthesis in those conditions
258+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
270259
271260error: `let` expressions are not supported here
272261 --> $DIR/feature-gate.rs:40:55
273262 |
274263LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
275264 | ^^^^^^^^^
276265 |
277- = note: only supported directly in conditions of `if`- and `while`-expressions
278- = note: as well as when nested within `&&` and parenthesis in those conditions
266+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
279267
280268error: `let` expressions are not supported here
281269 --> $DIR/feature-gate.rs:40:68
282270 |
283271LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
284272 | ^^^^^^^^^
285273 |
286- = note: only supported directly in conditions of `if`- and `while`-expressions
287- = note: as well as when nested within `&&` and parenthesis in those conditions
274+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
288275
289276error: `let` expressions are not supported here
290277 --> $DIR/feature-gate.rs:52:15
291278 |
292279LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
293280 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294281 |
295- = note: only supported directly in conditions of `if`- and `while`-expressions
296- = note: as well as when nested within `&&` and parenthesis in those conditions
282+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
297283
298284error: `let` expressions are not supported here
299285 --> $DIR/feature-gate.rs:68:16
300286 |
301287LL | use_expr!((let 0 = 1 && 0 == 0));
302288 | ^^^^^^^^^
303289 |
304- = note: only supported directly in conditions of `if`- and `while`-expressions
305- = note: as well as when nested within `&&` and parenthesis in those conditions
290+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
306291
307292error: `let` expressions are not supported here
308293 --> $DIR/feature-gate.rs:71:16
309294 |
310295LL | use_expr!((let 0 = 1));
311296 | ^^^^^^^^^
312297 |
313- = note: only supported directly in conditions of `if`- and `while`-expressions
314- = note: as well as when nested within `&&` and parenthesis in those conditions
298+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
315299
316300error: aborting due to 35 previous errors
317301
0 commit comments