File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ If parsing the output with Rust, the
1111[ ` cargo_metadata ` ] ( https://crates.io/crates/cargo_metadata ) crate provides
1212some support for parsing the messages.
1313
14- Each type of message has a ` type ` field which can be used to distinguish the
15- different formats. When parsing, care should be taken to be forwards-compatible
16- with future changes to the format. Optional values may be ` null ` . New fields may
17- be added. Enumerated fields like "level" or "suggestion_applicability" may add
18- new values.
14+ Each type of message has a ` $message_type ` field which can be used to
15+ distinguish the different formats. When parsing, care should be taken
16+ to be forwards-compatible with future changes to the format. Optional
17+ values may be ` null ` . New fields may be added. Enumerated fields like
18+ "level" or "suggestion_applicability" may add new values.
1919
2020## Diagnostics
2121
@@ -32,7 +32,7 @@ Diagnostics have the following format:
3232``` javascript
3333{
3434 /* Type of this message */
35- " type " : " diagnostic" ,
35+ " $message_type " : " diagnostic" ,
3636 /* The primary message. */
3737 " message" : " unused variable: `x`" ,
3838 /* The diagnostic code.
You can’t perform that action at this time.
0 commit comments