Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit dd819cf

Browse files
authored
Add instructions to test error code docs (rust-lang#2145)
1 parent f6841a6 commit dd819cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/doc/rustc-dev-guide/src/diagnostics/error-codes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,12 @@ struct_span_code_err!(...)
9393
For an example of a PR adding an error code, see [#76143].
9494

9595
[#76143]: https://github.com/rust-lang/rust/pull/76143
96+
97+
## Running error code doctests
98+
99+
To test the examples added in `rustc_error_codes/src/error_codes`, run the
100+
error index generator using:
101+
102+
```
103+
./x test ./src/tools/error_index_generator
104+
```

0 commit comments

Comments
 (0)