This short patchset from David Malcolm enables errors to contain extra metadata - this is particularly useful for the Rust frontend, which will rely on that implementation to emit standard Rust error codes [1].
This series of patches is necessary for much of our more recent additions to the frontend, including the work of one of this year's GSoC student, Mahad Muhammad, who has spent a lot of time working on emitting these error codes from the Rust frontend for GCC. We will soon resume upstreaming patches from our development repository to the main GCC repository, in the hopes of distributing the Rust frontend as part of the GCC 14.1 release. [PATCH 1/2] diagnostics: add error_meta [PATCH 2/2] Experiment with adding an error code to an error Are these OK for trunk? Kindly, Arthur