Skip to content

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Aug 31, 2020

  • All codes are in one crate, rustc_error_codes
  • Extended descriptions are loaded using include_str!

I wrote this just by looking at the code, not by talking with anyone about it, so this might not be perfectly accurate.
Follow-up to #838 (comment).

r? @mark-i-m

@jyn514 jyn514 added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Aug 31, 2020
@jyn514
Copy link
Member Author

jyn514 commented Aug 31, 2020

There's an example PR adding an error code in rust-lang/rust#76143, I'll mention that in the change.

- All codes are in one crate, `rustc_error_codes`
- Extended descriptions are loaded using `include_str!`
- Give an example of a PR adding an error code
@jyn514
Copy link
Member Author

jyn514 commented Sep 1, 2020

r? @estebank

The wg decided it would be good to get more feedback from compiler team, not just merging things on our own (https://rust-lang.zulipchat.com/#narrow/stream/196385-t-compiler.2Fwg-rustc-dev-guide/topic/meeting.202020-08-25/near/208740355). Estebank, are you interested in reviewing this?

@jyn514
Copy link
Member Author

jyn514 commented Sep 8, 2020

Maybe @GuillaumeGomez would also be interested in reviewing?

@tshepang tshepang merged commit 677a95f into rust-lang:master Sep 8, 2020
@jyn514 jyn514 deleted the diagnostic-codes branch September 8, 2020 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants