File tree 1 file changed +2
-1
lines changed
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!
387
387
388
388
In addition to telling the user exactly _ why_ their code is wrong, it's
389
389
oftentimes 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
391
391
suggestions pleasingly in the terminal, or (when the ` --error-format json ` flag
392
392
is passed) as JSON for consumption by tools like [ ` rustfix ` ] [ rustfix ] .
393
393
394
+ [ diag ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html
394
395
[ rustfix ] : https://github.com/rust-lang/rustfix
395
396
396
397
Not all suggestions should be applied mechanically, they have a degree of
You can’t perform that action at this time.
0 commit comments