rust/compiler/rustc_macros
bors de0b511daa Auto merge of #102189 - davidtwco:translation-derive-enums, r=compiler-errors
macros: diagnostic derive on enums

Part of #100717.

Extends `#[derive(Diagnostic)]` to work on enums too where each variant acts like a distinct diagnostic - being able to represent diagnostics this way can be quite a bit simpler for some parts of the compiler.

r? `@compiler-errors`
cc `@Xiretza`
2022-09-27 04:39:25 +00:00
..
src Auto merge of #102189 - davidtwco:translation-derive-enums, r=compiler-errors 2022-09-27 04:39:25 +00:00
Cargo.toml dedupe 'annotate-snippets' crate versions 2022-08-02 21:07:01 +03:00