]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Auto merge of #79349 - Nemo157:issue-79201, r=jyn514
authorbors <bors@rust-lang.org>
Fri, 11 Dec 2020 22:00:00 +0000 (22:00 +0000)
committerbors <bors@rust-lang.org>
Fri, 11 Dec 2020 22:00:00 +0000 (22:00 +0000)
commit9eb3a7ceafd1e2c1924177caa18c7cc0c25b413e
treea68004e4e691ad675d5faa8ef2722ecfd13ba126
parent2225ee1b62ff089917434aefd9b2bf509cfa087f
parentd93f1d6c04fab017a24d868dd766a290321e636c
Auto merge of #79349 - Nemo157:issue-79201, r=jyn514

Apply `doc(cfg)` from parent items while collecting trait impls

Because trait impls bypass the standard `clean` hierarchy they do not participate in the `propagate_doc_cfg` pass, so instead we need to pre-collect all possible `doc(cfg)` attributes that will apply to them when cleaning.

fixes #79201
src/librustdoc/clean/inline.rs
src/librustdoc/passes/collect_trait_impls.rs
src/test/rustdoc/doc-cfg.rs
src/tools/compiletest/src/runtest.rs