File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ The descriptions are written in markdown, and all of them are linked in the
7575
7676<!-- TODO: When should an error use an error code, and when shouldn't it? -->
7777
78- [ `librustc_error_codes` ] : https://github.com/ rust-lang/rust/blob/master/src/librustc_error_codes/ error_codes.rs
78+ [ `librustc_error_codes` ] : https://doc. rust-lang.org/nightly/nightly-rustc/rustc_error_codes/ error_codes/index.html
7979[ error index ] : https://doc.rust-lang.org/error-index.html
8080[ RFC 1567 ] : https://github.com/rust-lang/rfcs/blob/master/text/1567-long-error-codes-explanation-normalization.md
8181
@@ -104,7 +104,7 @@ use an error-level lint instead of a fixed error.
104104 flag. That said, don't make it so terse that it's hard to understand.
105105- The word "illegal" is illegal. Prefer "invalid" or a more specific word
106106 instead.
107- - Errors should document the span of code where they occur – the ` span_.. `
107+ - Errors should document the span of code where they occur – the ` librustc_errors::diagnostic_builder::DiagnosticBuilder ` ` span_* `
108108 methods allow to easily do this. Also ` note ` other spans that have
109109 contributed to the error if the span isn't too large.
110110- When emitting a message with span, try to reduce the span to the smallest
You can’t perform that action at this time.
0 commit comments