diff options
| author | Jeremy Fitzhardinge <jsgf@fb.com> | 2023-10-13 15:50:01 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jsgf@fb.com> | 2023-10-13 15:50:01 -0700 |
| commit | 8f0845862ced500ba76798080cf1fa5c28c4905e (patch) | |
| tree | 41fc7e31de4fb8c2c433ff76136310e1e2e7af6c /compiler/rustc_errors/src/json.rs | |
| parent | da3df9c2019beaa27da04ccf09f3a1dea6d46574 (diff) | |
| download | rust-8f0845862ced500ba76798080cf1fa5c28c4905e.tar.gz rust-8f0845862ced500ba76798080cf1fa5c28c4905e.zip | |
Use `$message_type` as the tag
`type` turned out to be controversial.
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
| -rw-r--r-- | compiler/rustc_errors/src/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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>), |
