diff options
| author | bors <bors@rust-lang.org> | 2021-05-11 05:03:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-11 05:03:18 +0000 |
| commit | fe62c6e2958abfe54a9410a24a5750baf4c157e0 (patch) | |
| tree | 7bd5f1fce30e81bb712a90d0718447d568669aaf /compiler/rustc_errors/src | |
| parent | 455c5e061cbae0ec7da3d14713a8f3cb18caf023 (diff) | |
| parent | 804ab9f78e6a0daf01ad106f16c844d5c24cdd04 (diff) | |
| download | rust-fe62c6e2958abfe54a9410a24a5750baf4c157e0.tar.gz rust-fe62c6e2958abfe54a9410a24a5750baf4c157e0.zip | |
Auto merge of #80300 - LeSeulArtichaut:80275-doc-inline, r=Manishearth
Emit errors/warns on some wrong uses of rustdoc attributes This PR adds a few diagnostics: - error if conflicting `#[doc(inline)]`/`#[doc(no_inline)]` are found - introduce the `invalid_doc_attributes` lint (warn-by-default) which triggers: - if a crate-level attribute is used on a non-`crate` item - if `#[doc(inline)]`/`#[doc(no_inline)]` is used on a non-`use` item The code could probably be improved but I wanted to get feedback first. Also, some of those changes could be considered breaking changes, so I don't know what the procedure would be? ~~And finally, for the warnings, they are currently hard warnings, maybe it would be better to introduce a lint?~~ (EDIT: introduced the `invalid_doc_attributes` lint) Closes #80275. r? `@jyn514`
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions
