Skip to content

Commit fe50c53

Browse files
committed
Update some more cases of "type" -> "$message_type"
1 parent 8aa4fb5 commit fe50c53

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/rustc_errors/src/json.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ struct ArtifactNotification<'a> {
317317

318318
#[derive(Serialize)]
319319
struct FutureBreakageItem<'a> {
320-
// Actually Diagnostic, but we want to make sure it gets serialized with `type`.
320+
// Always EmitTyped::Diagnostic, but we want to make sure it gets serialized
321+
// with "$message_type".
321322
diagnostic: EmitTyped<'a>,
322323
}
323324

src/doc/rustc/src/json.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ flag][option-emit] documentation.
222222
```javascript
223223
{
224224
/* Type of this message */
225-
"type": "artifact",
225+
"$message_type": "artifact",
226226
/* The filename that was generated. */
227227
"artifact": "libfoo.rlib",
228228
/* The kind of artifact that was generated. Possible values:
@@ -246,7 +246,7 @@ information, even if the diagnostics have been suppressed (such as with an
246246
```javascript
247247
{
248248
/* Type of this message */
249-
"type": "future_incompat",
249+
"$message_type": "future_incompat",
250250
/* An array of objects describing a warning that will become a hard error
251251
in the future.
252252
*/

0 commit comments

Comments
 (0)