From 8f0845862ced500ba76798080cf1fa5c28c4905e Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Fri, 13 Oct 2023 15:50:01 -0700 Subject: Use `$message_type` as the tag `type` turned out to be controversial. --- compiler/rustc_errors/src/json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_errors') diff --git a/compiler/rustc_errors/src/json.rs b/compiler/rustc_errors/src/json.rs index e89e443dbcb..38699c26680 100644 --- a/compiler/rustc_errors/src/json.rs +++ b/compiler/rustc_errors/src/json.rs @@ -158,7 +158,7 @@ impl JsonEmitter { } #[derive(Serialize)] -#[serde(tag = "type", rename_all = "snake_case")] +#[serde(tag = "$message_type", rename_all = "snake_case")] enum EmitTyped<'a> { Diagnostic(Diagnostic), Artifact(ArtifactNotification<'a>), -- cgit 1.4.1-3-g733a5