@@ -56,7 +56,19 @@ Error explanations are long form descriptions of error messages provided with
56
56
the compiler. They are accessible via the ` --explain ` flag. Each explanation
57
57
comes with an example of how to trigger it and advice on how to fix it.
58
58
59
- * All of them are accessible [ online] ( https://github.com/rust-lang/rust/blob/master/src/librustc/diagnostics.rs ) .
59
+ * All of them are accessible [ online] ( http://doc.rust-lang.org/error-index.html ) ,
60
+ which are auto-generated from rustc source code in different places:
61
+ [ librustc] ( https://github.com/rust-lang/rust/blob/master/src/librustc/diagnostics.rs ) ,
62
+ [ librustc_borrowck] ( https://github.com/rust-lang/rust/blob/master/src/librustc_borrowck/diagnostics.rs ) ,
63
+ [ librustc_const_eval] ( https://github.com/rust-lang/rust/blob/master/src/librustc_const_eval/diagnostics.rs ) ,
64
+ [ librustc_lint] ( https://github.com/rust-lang/rust/blob/master/src/librustc_lint/types.rs ) ,
65
+ [ librustc_metadata] ( https://github.com/rust-lang/rust/blob/master/src/librustc_metadata/diagnostics.rs ) ,
66
+ [ librustc_mir] ( https://github.com/rust-lang/rust/blob/master/src/librustc_mir/diagnostics.rs ) ,
67
+ [ librustc_passes] ( https://github.com/rust-lang/rust/blob/master/src/librustc_passes/diagnostics.rs ) ,
68
+ [ librustc_privacy] ( https://github.com/rust-lang/rust/blob/master/src/librustc_privacy/diagnostics.rs ) ,
69
+ [ librustc_resolve] ( https://github.com/rust-lang/rust/blob/master/src/librustc_resolve/diagnostics.rs ) ,
70
+ [ librustc_trans] ( https://github.com/rust-lang/rust/blob/master/src/librustc_trans/diagnostics.rs ) ,
71
+ [ librustc_typeck] ( https://github.com/rust-lang/rust/blob/master/src/librustc_typeck/diagnostics.rs ) .
60
72
* Explanations have full markdown support. Use it, especially to highlight
61
73
code with backticks.
62
74
* When talking about the compiler, call it ` the compiler ` , not ` Rust ` or
0 commit comments