about summary refs log tree commit diff
path: root/src/librustdoc/passes/stripper.rs
AgeCommit message (Collapse)AuthorLines
2023-11-15Re-format code with new rustfmtMark Rousskov-8/+9
2023-08-21rustdoc: Rename `clean` items from typedef to type aliasNoah Lev-1/+1
2023-07-29Move `inherits_doc_hidden` and `should_ignore_res` into `clean/utils.rs`Guillaume Gomez-1/+1
2023-07-14Correctly handle `--document-hidden-items`Guillaume Gomez-8/+15
2023-07-14Strip impl if not re-exported and is doc(hidden)Guillaume Gomez-1/+7
2023-06-19Clean up "doc(hidden)" checkGuillaume Gomez-5/+4
2023-05-22rustdoc: Cleanup doc string collapsingVadim Petrochenkov-1/+1
2023-02-15Use more let chainGuillaume Gomez-17/+15
2023-01-14Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddleYuki Okushi-11/+1
Remove dead code in rustdoc stripper No changes when this code is removed. cc `@aDotInTheVoid` r? `@notriddle`
2023-01-12Fix not displayed re-export of `doc(hidden)` itemGuillaume Gomez-1/+14
2023-01-12Remove dead code in rustdoc stripperGuillaume Gomez-11/+1
2023-01-06rustdoc: Strip imports of items which are `#[doc(hidden)]`Nixon Enraght-Moony-0/+1
Closes #106379
2023-01-01clean: Always store enum disriminant.Nixon Enraght-Moony-1/+4
2022-11-03Remove rustdoc clean::Visibility typeGuillaume Gomez-4/+4
2022-10-30Make rustdoc Item::visibility computed on-demandGuillaume Gomez-8/+11
2022-10-29rustdoc: Split effective visibilities from rustc from similar data built by ↵Vadim Petrochenkov-12/+22
rustdoc for external def-ids
2022-10-29Add regression test for missing item from private mod in JSON outputGuillaume Gomez-1/+1
2022-10-29Add missing impl blocks for item reexported from private mod in JSON outputGuillaume Gomez-5/+25
2022-10-26privacy: Rename "accessibility levels" to "effective visibilities"Vadim Petrochenkov-7/+7
And a couple of other naming tweaks Related to https://github.com/rust-lang/rust/issues/48054
2022-09-01Fix typo in commentNixon Enraght-Moony-1/+1
2022-08-15Rollup merge of #100325 - aDotInTheVoid:rdj-import-impl, r=GuillaumeGomezMatthias Krüger-1/+11
Rustdoc-Json: Don't remove impls for items imported from private modules After #99287, items in private modules may still be in the json output, if a public import accesses them. To reflect this, items that are imported need to be marked as retained in the `Stripper` pass, so their impls arn't removed by `ImplStripper`. [More context on zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Populating.20cache.2Eimpls), thanks to @ jyn514 for helping debug this. ``@rustbot`` modify labels: +A-rustdoc-json +T-rustdoc r? ``@GuillaumeGomez`` Fixes #100252 Fixes #100242
2022-08-15rustdoc: Mark imported items as retainedNixon Enraght-Moony-1/+11
Fixes a bug where impl of items that were imported from a private module would be striped Fixes #100252 Fixes #100242
2022-08-09Prevent impl blocks containing only private items to be documented by defaultGuillaume Gomez-14/+39
2022-07-21Remove unused field in ItemKind::KeywordItemGuillaume Gomez-1/+1
2022-07-16Correctly handle usage of private items in public API for JSON output formatGuillaume Gomez-4/+18
2022-05-31Display empty impl blocks if they have documentationsGuillaume Gomez-2/+3
2022-05-21Remove `crate` visibility modifier in libs, testsJacob Pratt-8/+8
2022-04-16Rename `def_id` into `item_id` when the type is `ItemId` for readabilityGuillaume Gomez-4/+5
2022-04-12rustdoc: discr. required+provided assoc consts+tysLeón Orell Valerian Liehr-5/+3
2022-01-17fix #90187zredb-1/+1
remove the definition of def_id_no_primitives and change; a missing use was modified; narrow the Cache accessibility of BadImplStripper;
2022-01-17fix #90187zredb-0/+1
2022-01-17fix #90187zredb-1/+2
2022-01-13librustdoc: Address some clippy lintspierwill-5/+4
Also ignore clippy's "collapsible if..." lints.
2021-12-15Add module documentation for rustdoc passesJacob Hoffman-Andrews-0/+1
These are currently documented at https://rustc-dev-guide.rust-lang.org/rustdoc-internals.html#hot-potato but can easily go out of date. We'd like to document them in place and link to https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc/passes/index.html
2021-10-22Rename `Type::def_id()` to `Type::def_id_no_primitives()`Noah Lev-2/+2
The old name was confusing because it's easy to assume that using `def_id()` is fine, but in some situations it's incorrect. In general, `def_id_full()` should be preferred, so `def_id_full()` should have a shorter name. That will happen in the next commit.
2021-10-22Replace `GetDefId` with inherent methodsNoah Lev-1/+1
Now that it's only implemented for `Type`, using inherent methods instead means that imports are no longer necessary. Also, `GetDefId` is only meant to be used with `Type`, so it shouldn't be a trait.
2021-09-30Remove temporary `GetDefId` impl for `Path`Noah Lev-1/+1
2021-09-12Rename `is_generic()` to `is_assoc_ty()`Noah Lev-1/+1
The new name is more accurate than the previous one.
2021-08-31Rollup merge of #88391 - GuillaumeGomez:fix-json-enum-variant, ↵Mara Bos-2/+2
r=camelid,notriddle Fix json tuple struct enum variant Fixes #87887. cc `@dsherret` `@camelid` r? `@notriddle`
2021-08-29Use the correct type for Enum variant tuplesGuillaume Gomez-2/+2
2021-08-29Fix: don't document private macros by defaultinquisitivecrystal-2/+3
2021-07-05Revert "rustdoc: Store DefId's in ItemId on heap for decreasing Item's size"Justus K-2/+2
This reverts commit 41a345d4c46dad1a98c9993bc78513415994e8ba.
2021-07-05rustdoc: Store DefId's in ItemId on heap for decreasing Item's sizeJustus K-2/+2
2021-07-05rustdoc: Rename `expect_real` to `expect_def_id`, remove `Item::is_fake`Justus K-1/+1
2021-07-05rustdoc: Replace `FakeDefId` with new `ItemId` typeJustus K-3/+3
2021-05-04rustdoc: Remove unnecessary `StripItem` wrapperJoshua Nelson-3/+3
2021-05-04Add type to differentiate between fake and real DefId'sJustus K-8/+9
2021-03-05Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to make ↵Guillaume Gomez-2/+4
transition over hir::ItemKind simpler
2021-01-15Rename VariantKind -> VariantJoshua Nelson-1/+1
There's no `Variant`, so it seems silly to have `Kind`.
2021-01-15Remove useless `clean::Variant` structJoshua Nelson-1/+1
It had exactly one field and no special behavior, so there was no point.