Skip to content

Commit 1e8a467

Browse files
ehussmark-i-mchrissimpkins
committed
Apply suggestions from code review
Co-authored-by: Who? Me?! <[email protected]> Co-authored-by: Chris Simpkins <[email protected]>
1 parent 39edbe5 commit 1e8a467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diagnostics.md

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)