This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 30b3b73
committed
Auto merge of rust-lang#12777 - roife:merge-fixes-needless-late-init, r=Alexendoo
fix: merge multiple suggestions into a single multi-span suggestion in `needless_late_init`
See rust-lang/rust-analyzer#17163 (comment).
Currently, the fix for `needless_late_init` would modify multiple parts in the file. However, these modifications are exported as separate suggestions instead of a unified 'multi-part suggestion'.
Consequently, rust-analyzer is unable to perform the fix correctly when applying suggestions automatically, as only one suggestion is processed at a time. This PR addresses this issue by merge all modifications into a single multi-part suggestion.
changelog: [`needless_late_init`]: merge multiple fixes into a single multi-span fix.File tree
2 files changed
+104
-142
lines changed- clippy_lints/src
- tests/ui
2 files changed
+104
-142
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
287 | 279 | | |
288 | 280 | | |
289 | 281 | | |
290 | 282 | | |
291 | 283 | | |
292 | 284 | | |
293 | | - | |
| 285 | + | |
294 | 286 | | |
295 | 287 | | |
296 | 288 | | |
297 | 289 | | |
298 | 290 | | |
299 | 291 | | |
300 | 292 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 293 | + | |
| 294 | + | |
311 | 295 | | |
312 | 296 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
| 297 | + | |
319 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
320 | 307 | | |
321 | 308 | | |
322 | 309 | | |
323 | 310 | | |
324 | | - | |
| 311 | + | |
| 312 | + | |
325 | 313 | | |
326 | 314 | | |
327 | 315 | | |
328 | 316 | | |
329 | 317 | | |
330 | 318 | | |
331 | 319 | | |
332 | | - | |
| 320 | + | |
| 321 | + | |
333 | 322 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
340 | 326 | | |
341 | 327 | | |
342 | | - | |
| 328 | + | |
343 | 329 | | |
344 | 330 | | |
345 | 331 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | 332 | | |
356 | 333 | | |
357 | 334 | | |
| |||
0 commit comments