about summary refs log tree commit diff
path: root/src/librustdoc/passes/collapse_docs.rs
AgeCommit message (Collapse)AuthorLines
2021-01-02Remove unused collapse passGuillaume Gomez-14/+0
2021-01-02End of rework of Attributes structGuillaume Gomez-60/+2
2020-11-22Make `fold_item_recur` non-nullableJoshua Nelson-1/+1
This gets rid of a bunch of `unwrap()`s and makes it a little more clear what's going on. Originally I wanted to make `fold_item` non-nullable too, which would have been a lot nicer to work with, but unfortunately `stripper` does actually return `None` in some places. I might make a follow-up moving stripper to be special and not a pass so that passes can be non-nullable.
2020-11-15Make all rustdoc functions and structs crate-privateJoshua Nelson-3/+3
This gives warnings about dead code.
2020-10-11Show summary lines on cross-crate re-exportsJoshua Nelson-1/+4
This removes the unnecessary `DocFragmentKind::Divider` in favor of just using the logic I actually want in `collapse_docs`.
2020-10-03Change DocFragments from enum variant fields to structs with a nested enumJoshua Nelson-37/+12
This makes the code a lot easier to work with. It also makes it easier to add new fields without updating each variant and `match` individually. - Name the `Kind` variant after `DocFragmentKind` from `collapse_docs` - Remove unneeded impls
2020-01-04Distinguish between private items and hidden items in rustdocDavid Tolnay-1/+1
I believe rustdoc should not be conflating private items (visibility lower than `pub`) and hidden items (attribute `doc(hidden)`). This matters now that Cargo is passing --document-private-items by default for bin crates. In bin crates that rely on macros, intentionally hidden implementation details of the macros can overwhelm the actual useful internal API that one would want to document. This PR restores the strip-hidden pass when documenting private items, and introduces a separate unstable --document-hidden-items option to skip the strip-hidden pass. The two options are orthogonal to one another.
2019-12-22Format the worldMark Rousskov-10/+10
2019-08-11Store typed PassesMark Rousskov-1/+3
2019-07-01Fix import of take in collapse_docs.rsChris Gregory-1/+1
2019-07-01Convert more usages overChris Gregory-1/+1
2019-03-10Make the rustc driver and interface demand drivenJohn Kåre Alsaker-1/+1
2019-02-23merge early and late passes into single structAndy Russell-3/+5
2019-02-23move collapse and unindent docs passes earlierAndy Russell-2/+3
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-4/+5
2018-12-25Remove licensesMark Rousskov-10/+0
2018-08-04strongly-typed passesQuietMisdreavus-0/+5
2018-07-24remove pluginmanagersteveklabnik-2/+1
2017-11-21allow loading external files in documentationQuietMisdreavus-9/+63
Partial implementation of https://github.com/rust-lang/rfcs/pull/1990 (needs error reporting work) cc #44732
2016-11-24rustdoc: use libsyntax ast::Attribute instead of "cleaning" them.Eduard-Mihai Burtescu-22/+15
2016-09-25Move in-pass-function structs and impls outside functions.Corey Farwell-22/+24
Now that each pass has its own module, there's not much of a reason to keep these structs within the functions.
2016-09-25Separate rustdoc passes into separate modules.Corey Farwell-0/+45