os-rust/compiler/rustc_passes
Guillaume Gomez 8867f7f650
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``
2021-03-05 21:44:38 +01:00
..
src Rollup merge of #82708 - GuillaumeGomez:doc-test-attr-check, r=Manishearth 2021-03-05 21:44:38 +01:00
Cargo.toml Add rustc_lexer as dependency to rustc_passes 2020-12-02 10:42:50 +01:00