File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -387,10 +387,11 @@ example-example-error = oh no! this is an error!
387387
388388In addition to telling the user exactly _ why_ their code is wrong, it's
389389oftentimes furthermore possible to tell them how to fix it. To this end,
390- ` Diag ` offers a structured suggestions API, which formats code
390+ [ ` Diag ` ] [ diag ] offers a structured suggestions API, which formats code
391391suggestions pleasingly in the terminal, or (when the ` --error-format json ` flag
392392is passed) as JSON for consumption by tools like [ ` rustfix ` ] [ rustfix ] .
393393
394+ [ diag ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html
394395[ rustfix ] : https://github.com/rust-lang/rustfix
395396
396397Not all suggestions should be applied mechanically, they have a degree of
You can’t perform that action at this time.
0 commit comments