about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorChristoph Schmidler <c.schmidler@gmail.com>2019-12-16 10:25:00 +0100
committerWho? Me?! <mark-i-m@users.noreply.github.com>2019-12-17 08:35:30 -0600
commit50c6bc4add2728f11fff74f274ff6587e0780ff7 (patch)
tree0f321342f0a58526023321b416a2fb1061128c97 /src/doc
parent35669443eace4d7bea7017b5ee46d2d80cca6c92 (diff)
downloadrust-50c6bc4add2728f11fff74f274ff6587e0780ff7.tar.gz
rust-50c6bc4add2728f11fff74f274ff6587e0780ff7.zip
Correct statement that wrongly claims the json emitter still lives in libsyntax crate
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc-dev-guide/src/diagnostics.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/doc/rustc-dev-guide/src/diagnostics.md b/src/doc/rustc-dev-guide/src/diagnostics.md
index c6c8f4fbaa7..e4fb443c17d 100644
--- a/src/doc/rustc-dev-guide/src/diagnostics.md
+++ b/src/doc/rustc-dev-guide/src/diagnostics.md
@@ -357,14 +357,12 @@ string; this was introduced so that UI tests could both make use of
 the structured JSON and see the "human" output (well, _sans_ colors)
 without having to compile everything twice.
 
-The JSON emitter currently lives in libsyntax/json.rs. (But arguably
-it should live in librustc_errors along with the "human" emitter? It's
-not obvious to the present author why it wasn't moved from libsyntax
-to librustc_errors at the same [time the "human" emitter was
-moved](https://github.com/rust-lang/rust/commit/6ae3502134).)
+The "human" readable and the json format emitter can be found under
+librustc_errors, both were moved from the libsyntax crate to the
+[librustc_errors crate](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/index.html).
 
 The JSON emitter defines [its own `Diagnostic`
-struct](https://github.com/rust-lang/rust/blob/b2c6b8c29f13f8d1f242da89e587960b95337819/src/libsyntax/json.rs#L85-L99)
+struct](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/json/struct.Diagnostic.html)
 (and sub-structs) for the JSON serialization. Don't confuse this with
 [`errors::Diagnostic`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diagnostic.html)!