Skip to content

Commit

Permalink
Add instructions to test error code docs (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
cramertj authored Nov 21, 2024
1 parent 5f5e0b5 commit 5a76e97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/diagnostics/error-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,12 @@ struct_span_code_err!(...)
For an example of a PR adding an error code, see [#76143].

[#76143]: https://github.com/rust-lang/rust/pull/76143

## Running error code doctests

To test the examples added in `rustc_error_codes/src/error_codes`, run the
error index generator using:

```
./x test ./src/tools/error_index_generator
```

0 comments on commit 5a76e97

Please sign in to comment.