rustc_errors::diagnostics::Diagnostic codes


I trying to implement structured output for clippy results in Teamcity CI Service Messages format, but figured out there are no calls to Handler::emit_with_code, and all Diagnostic instances lacks of the code, it makes unable any script to distinguish one error (compiler or lint) from another except by message.

Is there any work towards using code field in Diagnostic? i can’t find anything, but presence of emit_with_code make me think, there was efforts in this direction.


Found this proposal Pre-RFC: fully structured rustc diagnostics towards l10n But looks like there are no interest in this topic.

closed #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.