File tree 1 file changed +2
-2
lines changed
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
75
75
76
76
<!-- TODO: When should an error use an error code, and when shouldn't it? -->
77
77
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
79
79
[ error index ] : https://doc.rust-lang.org/error-index.html
80
80
[ RFC 1567 ] : https://github.com/rust-lang/rfcs/blob/master/text/1567-long-error-codes-explanation-normalization.md
81
81
@@ -104,7 +104,7 @@ use an error-level lint instead of a fixed error.
104
104
flag. That said, don't make it so terse that it's hard to understand.
105
105
- The word "illegal" is illegal. Prefer "invalid" or a more specific word
106
106
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_* `
108
108
methods allow to easily do this. Also ` note ` other spans that have
109
109
contributed to the error if the span isn't too large.
110
110
- 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