summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorTbkhi <dining-03town@icloud.com>2024-03-10 15:58:49 -0300
committerTshepang Mbambo <tshepang@gmail.com>2024-03-11 03:11:55 +0200
commit210449321cf6f191e816f7fe051a656a42a97561 (patch)
tree5d9fd83b6c5d8beaf316da3343fcaf28aff82c9f /src/doc/rustc-dev-guide
parentdaf2f3c27447fd5c05e7bee533ccef0933cc23b6 (diff)
downloadrust-210449321cf6f191e816f7fe051a656a42a97561.tar.gz
rust-210449321cf6f191e816f7fe051a656a42a97561.zip
Update rustc-driver-getting-diagnostics.md
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md b/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md
index 240ebe99b42..7cf4f119388 100644
--- a/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md
+++ b/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md
@@ -1,14 +1,19 @@
 # Example: Getting diagnostic through `rustc_interface`
 
-`rustc_interface` allows you to intercept diagnostics that would otherwise be printed to stderr.
+The [`rustc_interface`] allows you to intercept diagnostics that would
+otherwise be printed to stderr.
 
 ## Getting diagnostics
 
 To get diagnostics from the compiler,
-configure `rustc_interface::Config` to output diagnostic to a buffer,
-and run `TyCtxt.analysis`. The following was tested
+configure [`rustc_interface::Config`] to output diagnostic to a buffer,
+and run [`TyCtxt.analysis`]. The following was tested
 with <!-- date-check: jan 2024 --> `nightly-2024-01-19`:
 
 ```rust
 {{#include ../examples/rustc-driver-getting-diagnostics.rs}}
 ```
+
+[`rustc_interface`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html
+[`rustc_interface::Config`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/struct.Config.html
+[`TyCtxt.analysis`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/passes/fn.analysis.html
\ No newline at end of file