]> git.lizzy.rs Git - rust.git/commit
Auto merge of #52800 - QuietMisdreavus:do-not-pass-go, r=GuillaumeGomez
authorbors <bors@rust-lang.org>
Sun, 5 Aug 2018 18:45:01 +0000 (18:45 +0000)
committerbors <bors@rust-lang.org>
Sun, 5 Aug 2018 18:45:01 +0000 (18:45 +0000)
commit73c78734bae8f2947a4bfdeabebeeb84ccf0b0e1
treeba666b97c4fb190ee2bff2ff7662913f748c99ab
parent93a4cab45ad119003c9749861eb7ac749eb334e2
parente332985c03e583cb0e28f576af3102cc69ddec5b
Auto merge of #52800 - QuietMisdreavus:do-not-pass-go, r=GuillaumeGomez

rustdoc: refactor how passes are structured, and turn intra-doc-link collection into a pass

This builds on https://github.com/rust-lang/rust/pull/52751 and should not be merged until that finally finishes the bors queue

Part 2 of my passes refactor. This introduces the concept of an "early pass", which is run right before exiting the compiler context. This is important for passes that may want to ask the compiler about things. For example, i took out the intra-doc-link collection and turned it into a early pass. I also made the `strip-hidden`, `strip-private` and `strip-priv-imports` passes occur as early passes, so that intra-doc-link collection wouldn't run on docs that weren't getting printed.

Fixes https://github.com/rust-lang/rust/issues/51684, technically https://github.com/rust-lang/rust/issues/51468 too but that version of `h2` hits a legit intra-link error after that `>_>`

r? @rust-lang/rustdoc