about summary refs log tree commit diff
path: root/src/librustdoc/passes/stripper.rs
AgeCommit message (Collapse)AuthorLines
2025-08-28Add new `doc(attribute = "...")` attributeGuillaume Gomez-0/+2
2024-12-19Rename TyMethodItem -> RequiredMethodItemDavid Tolnay-1/+1
2024-12-19Rename TyAssocTypeItem -> RequiredAssocTypeItemDavid Tolnay-1/+1
2024-12-19Split AssocConstItem into ProvidedAssocConstItem and ImplAssocConstItemDavid Tolnay-1/+4
2024-12-19Rename TyAssocConstItem -> RequiredAssocConstItemDavid Tolnay-1/+3
2024-11-28Fix new clippy lintsGuillaume Gomez-6/+6
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-09-07rustdoc: use a single box to store Attributes and ItemKindMichael Howell-4/+4
2024-08-30Remove `#[macro_use] extern crate tracing` from rustdoc.Nicholas Nethercote-0/+1
2024-08-08rustdoc: fixed #101105schvv31n-1/+8
modules are now stripped based on the same logic that's used to strip other item kinds
2024-08-01rustdoc: Remove OpaqueTyAlona Enraght-Moony-2/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-06-20Add blank lines after module-level `//!` comments.Nicholas Nethercote-0/+1
Most modules have such a blank line, but some don't. Inserting the blank line makes it clearer that the `//!` comments are describing the entire module, rather than the `use` declaration(s) that immediately follows.
2024-01-20Fix impl stripped in rustdoc HTML whereas it should not be in case the impl ↵Guillaume Gomez-12/+19
is implemented on a type alias
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.