Skip to content

Commit f386eef

Browse files
committed
docs(contrib): Link out to rustc diagnostic style guide
1 parent 0f14d9d commit f386eef

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/doc/contrib/src/implementation/console.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@ the [`JobQueue`] as it processes each message.
2121
[`drop_print`]: https://github.com/rust-lang/cargo/blob/e4b65bdc80f2a293447f2f6a808fa7c84bf9a357/src/cargo/util/config/mod.rs#L1820-L1848
2222
[`JobQueue`]: https://github.com/rust-lang/cargo/blob/master/src/cargo/core/compiler/job_queue/mod.rs
2323

24-
## Errors
24+
## Diagnostics
25+
26+
See rustc's [Errors and lints] for:
27+
- diagnostic structure
28+
- hard diagnostics vs lints
29+
- diagnostic style guide
30+
- lint naming
31+
- diagnostic levels
32+
- suggestion style guide
33+
34+
### Errors
2535

2636
Cargo uses [`anyhow`] for managing errors. This makes it convenient to "chain"
2737
errors together, so that Cargo can report how an error originated, and what it
@@ -56,3 +66,4 @@ Some guidelines for Cargo's output:
5666
future to be more structured.
5767

5868
[`anyhow`]: https://docs.rs/anyhow
69+
[Errors and lints]: https://rustc-dev-guide.rust-lang.org/diagnostics.html

0 commit comments

Comments
 (0)