fluent diagnostics can easily overwrite each others' fields/args #142031
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-diagnostic-infra
Diagnostics: Issues that affect all diagnostics, or relate to the diagnostic machinery itself.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Currently it is neither an error for diagnostic structs to have fields of the same name as subdiagnostics used in that same struct, nor is it a runtime error to specify
arg("foo", ...)
twice with the same arg name. This caused some confusion in const eval errors where the main error had aninstance
field/arg and the stack frame that got printed had aninstance
per frameOriginally posted by @RalfJung in #142015 (comment)
The text was updated successfully, but these errors were encountered: