rustc_errors::diagnostics::Diagnostic codes


#1

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.


#2

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