Commit 6f15816
authored
Rollup merge of #122315 - nnethercote:multiple-into-diag-message, r=Nilstrieb
Allow multiple `impl Into<{D,Subd}iagMessage>` parameters in a function.
The internal diagnostic lint currently only allows one, because that was all that occurred in practice. But rust-lang/rust-clippy/pull/12453 wants to introduce functions with more than one, and this limitation is getting in the way.
r? `@Nilstrieb`File tree
2 files changed
+13
-14
lines changed- compiler/rustc_lint/src
- tests/ui-fulldeps/internal-lints
2 files changed
+13
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
| 412 | + | |
| 413 | + | |
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
| |||
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
| 427 | + | |
435 | 428 | | |
436 | 429 | | |
437 | 430 | | |
438 | 431 | | |
439 | 432 | | |
440 | 433 | | |
441 | | - | |
| 434 | + | |
442 | 435 | | |
443 | 436 | | |
444 | 437 | | |
| |||
481 | 474 | | |
482 | 475 | | |
483 | 476 | | |
484 | | - | |
| 477 | + | |
485 | 478 | | |
486 | 479 | | |
487 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
0 commit comments