about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-12-01 10:50:16 +0000
committerGitHub <noreply@github.com>2020-12-01 10:50:16 +0000
commit36ce8db2290c32e1d1f2acc422d5ddb28ed9a9a9 (patch)
treeb28d741cea9bff9c06eea361cc76e628abea6fcc /compiler/rustc_mir/src/transform/coverage/debug.rs
parent2404409c6c1db267fbf27c92b8ee23fafd97a377 (diff)
parenta90fdfc70178038599bfc7247aedc83bfe2e88f0 (diff)
downloadrust-36ce8db2290c32e1d1f2acc422d5ddb28ed9a9a9.tar.gz
rust-36ce8db2290c32e1d1f2acc422d5ddb28ed9a9a9.zip
Rollup merge of #79522 - ehuss:lint-check-validate, r=Mark-Simulacrum
Validate lint docs separately.

This addresses some concerns raised in https://github.com/rust-lang/rust/pull/76549#issuecomment-727638552 about errors with the lint docs being confusing and cumbersome. Errors from validating the lint documentation were being generated during `x.py doc` (and `x.py dist`), since extraction and validation are being done in a single step. This changes it so that extraction and validation are separated, so that `x.py doc` will not error if there is a validation problem, and tests are moved to `x.py test src/tools/lint-docs`.

This includes the following changes:

* Separate validation to `x.py test`.
* Added some more documentation on how to more easily modify and test the docs.
* Added more help to the error messages to hopefully provide more information on how to fix things.

The first commit just moves the code around, so you may consider looking at the other commits for a smaller diff.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions