We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Diag
1 parent 544b1fc commit 16e3047Copy full SHA for 16e3047
src/diagnostics.md
@@ -387,10 +387,11 @@ example-example-error = oh no! this is an error!
387
388
In addition to telling the user exactly _why_ their code is wrong, it's
389
oftentimes furthermore possible to tell them how to fix it. To this end,
390
-`Diag` offers a structured suggestions API, which formats code
+[`Diag`][diag] offers a structured suggestions API, which formats code
391
suggestions pleasingly in the terminal, or (when the `--error-format json` flag
392
is passed) as JSON for consumption by tools like [`rustfix`][rustfix].
393
394
+[diag]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html
395
[rustfix]: https://github.com/rust-lang/rustfix
396
397
Not all suggestions should be applied mechanically, they have a degree of
0 commit comments