diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-09-17 14:10:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-17 14:10:48 -0700 |
| commit | ffee7bbf9a3ae1cff2bdf3cb17d3f5d8b01951c0 (patch) | |
| tree | 80c46ed4e03560b875ef34b0ccbade2e9757a56d /src/test | |
| parent | ec905cf9e5b8fea647ba49bf781366addef8f7e2 (diff) | |
| parent | 02c1b892c1dfa6d0f00254f9c058ce7595921d61 (diff) | |
| download | rust-ffee7bbf9a3ae1cff2bdf3cb17d3f5d8b01951c0.tar.gz rust-ffee7bbf9a3ae1cff2bdf3cb17d3f5d8b01951c0.zip | |
Rollup merge of #64429 - afnanenayet:afnan/fix-failure-note-json-level, r=Mark-Simulacrum
Fix failure note `to_str` implementation Serialize the level to something a little more useful for a failure note struct. This fixes #60425.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/json-short.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/lint/use_suggestion_json.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/json-short.stderr b/src/test/ui/json-short.stderr index 86cb2f0a3a8..0a1fb567714 100644 --- a/src/test/ui/json-short.stderr +++ b/src/test/ui/json-short.stderr @@ -15,5 +15,5 @@ started: https://doc.rust-lang.org/book/ "} {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error "} -{"message":"For more information about this error, try `rustc --explain E0601`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0601`. +{"message":"For more information about this error, try `rustc --explain E0601`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0601`. "} diff --git a/src/test/ui/lint/use_suggestion_json.stderr b/src/test/ui/lint/use_suggestion_json.stderr index c7c53abcf44..678c88849b5 100644 --- a/src/test/ui/lint/use_suggestion_json.stderr +++ b/src/test/ui/lint/use_suggestion_json.stderr @@ -412,7 +412,7 @@ mod foo { { "message": "For more information about this error, try `rustc --explain E0412`.", "code": null, - "level": "", + "level": "failure-note", "spans": [], "children": [], "rendered": "\u001b[0m\u001b[1mFor more information about this error, try `rustc --explain E0412`.\u001b[0m |
