about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-03-05 21:44:38 +0100
committerGitHub <noreply@github.com>2021-03-05 21:44:38 +0100
commit8867f7f6507ad0a6682c969235fb5f0b572e646b (patch)
treeb52844c6610cd167a99c5f700e172764470b0aec /compiler/rustc_mir/src/transform/coverage/graph.rs
parent92861c79276cee63e53ed4c63111cd37560c458c (diff)
parenta11e87e74d3ad5f6b9f628faba85739f067108a6 (diff)
downloadrust-8867f7f6507ad0a6682c969235fb5f0b572e646b.tar.gz
rust-8867f7f6507ad0a6682c969235fb5f0b572e646b.zip
Rollup merge of #82708 - GuillaumeGomez:doc-test-attr-check, r=Manishearth
Warn on `#![doc(test(...))]` on items other than the crate root and use future incompatible lint

Part of #82672.

This PR does multiple things:
 * Create a new `INVALID_DOC_ATTRIBUTE` lint which is also "future incompatible", allowing us to use it as a warning for the moment until it turns (eventually) into a hard error.
 * Use this link when `#![doc(test(...))]` isn't used at the crate level.
 * Make #82702 use this new lint as well.

r? ``@jyn514``
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions