Emit only one note per struct when multiple fields would trigger the same compiler note #97643
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally the output should look like:
Or something even more compact if possible. Without this, compiler output is almost double, and mostly unnecessary.
The text was updated successfully, but these errors were encountered: