rust/compiler/rustc_macros/src
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
..
diagnostics macros: support diagnostic derive on enums 2022-09-26 11:59:19 +01:00
symbols Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
hash_stable.rs more clippy fixes 2021-11-07 16:59:05 +01:00
lib.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
lift.rs Lift: take self by value 2020-10-21 23:59:35 +02:00
newtype.rs Use delayed error handling for Encodable and Encoder infallible. 2022-06-08 07:01:26 +10:00
query.rs Auto merge of #101173 - jyn514:simplify-macro-arguments, r=cjgillot 2022-09-15 11:54:03 +00:00
serialize.rs Use delayed error handling for Encodable and Encoder infallible. 2022-06-08 07:01:26 +10:00
symbols.rs symbols: add is_preinterned fn to check if symbol was preinterned in compiler 2022-08-20 15:13:41 +03:00
type_foldable.rs Add #[derive(TypeVisitable)] 2022-07-05 22:25:15 +01:00
type_visitable.rs Add #[derive(TypeVisitable)] 2022-07-05 22:25:15 +01:00