File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/doc/contrib/src/implementation Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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
2636Cargo uses [ ` anyhow ` ] for managing errors. This makes it convenient to "chain"
2737errors 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
You can’t perform that action at this time.
0 commit comments