about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2023-10-16 12:30:27 -0600
committerJeremy Fitzhardinge <jeremy@goop.org>2023-10-16 12:30:27 -0600
commit8aa4fb57f17c0769f37fc4ffdf5455e7b39f3479 (patch)
tree0c88f2bf887a73d07917aa4a660ea978bb9c5049 /src
parent8f0845862ced500ba76798080cf1fa5c28c4905e (diff)
downloadrust-8aa4fb57f17c0769f37fc4ffdf5455e7b39f3479.tar.gz
rust-8aa4fb57f17c0769f37fc4ffdf5455e7b39f3479.zip
Update docs too
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc/src/json.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/doc/rustc/src/json.md b/src/doc/rustc/src/json.md
index 28bd04777ea..eaace8883f2 100644
--- a/src/doc/rustc/src/json.md
+++ b/src/doc/rustc/src/json.md
@@ -11,11 +11,11 @@ If parsing the output with Rust, the
 [`cargo_metadata`](https://crates.io/crates/cargo_metadata) crate provides
 some support for parsing the messages.
 
-Each type of message has a `type` field which can be used to distinguish the
-different formats. When parsing, care should be taken to be forwards-compatible
-with future changes to the format. Optional values may be `null`. New fields may
-be added. Enumerated fields like "level" or "suggestion_applicability" may add
-new values.
+Each type of message has a `$message_type` field which can be used to
+distinguish the different formats. When parsing, care should be taken
+to be forwards-compatible with future changes to the format. Optional
+values may be `null`. New fields may be added. Enumerated fields like
+"level" or "suggestion_applicability" may add new values.
 
 ## Diagnostics
 
@@ -32,7 +32,7 @@ Diagnostics have the following format:
 ```javascript
 {
     /* Type of this message */
-    "type": "diagnostic",
+    "$message_type": "diagnostic",
     /* The primary message. */
     "message": "unused variable: `x`",
     /* The diagnostic code.