Skip to content

Commit e3740b3

Browse files
authored
Rollup merge of #34378 - liigo:patch-10, r=Manishearth
diagnostics comes from different places now
2 parents 0fde140 + 7f4b75e commit e3740b3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/doc/rustc-ux-guidelines.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,19 @@ Error explanations are long form descriptions of error messages provided with
5656
the compiler. They are accessible via the `--explain` flag. Each explanation
5757
comes with an example of how to trigger it and advice on how to fix it.
5858

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).
6072
* Explanations have full markdown support. Use it, especially to highlight
6173
code with backticks.
6274
* When talking about the compiler, call it `the compiler`, not `Rust` or

0 commit comments

Comments
 (0)