summary refs log tree commit diff
path: root/src/librustdoc/json
AgeCommit message (Collapse)AuthorLines
2023-05-22rustdoc: Cleanup doc string collapsingVadim Petrochenkov-1/+1
2023-05-04IAT: Rustdoc integrationLeón Orell Valerian Liehr-1/+1
2023-05-02Make tools happyMichael Goulet-0/+4
2023-04-29Unify attributes retrieval for JSON and HTML renderingGuillaume Gomez-6/+1
2023-04-26rustdoc-json: Time serialization.Alona Enraght-Moony-1/+4
2023-04-16Spelling librustdocJosh Soref-2/+2
* associated * collected * correspondence * inlining * into * javascript * multiline * variadic Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-12remove some unneeded importsKaDiWa-1/+0
2023-03-30Replace doc(primitive) with rustc_doc_primitiveGuillaume Gomez-4/+2
2023-03-28rustdoc + rustdoc-json support for non_lifetime_bindersMichael Goulet-4/+30
2023-02-22rustdoc: reduce allocations when generating tooltipsMichael Howell-1/+1
An attempt to reduce the perf regression in https://github.com/rust-lang/rust/pull/108052#issuecomment-1430631861
2023-02-18Improve code readabilityGuillaume Gomez-10/+21
2023-02-18Fix bad handling of primitive typesGuillaume Gomez-30/+48
2023-02-18Allow reexports of items with same name but different types to both appearGuillaume Gomez-57/+60
2023-02-15Use more let chainGuillaume Gomez-6/+5
2023-02-08Fix small debug typoGuillaume Gomez-1/+1
2023-01-22rustdoc: Use `DefId(Map,Set)` instead of `FxHash(Map,Set)`Vadim Petrochenkov-8/+8
Not all uses are converted, a few cases iterating through maps/sets and requiring nontrivial changes are kept.
2023-01-10Remove unneeded ItemId::Primitive variantGuillaume Gomez-1/+0
2023-01-04Rollup merge of #106412 - ↵Matthias Krüger-8/+23
GuillaumeGomez:fix-links-to-primitive-rustdoc-json, r=aDotInTheVoid Fix link generation for local primitive types in rustdoc JSON output Fixes https://github.com/rust-lang/rust/issues/104064. As mentioned in the issue, I'm not super happy about this fix which is more a hack rather than a sound-proof solution. However I couldn't find a better way to fix it. r? `@aDotInTheVoid`
2023-01-04Remove unused match pattern for primitive typesGuillaume Gomez-1/+1
2023-01-03Fix link generation for local primitive types in rustdoc JSON outputGuillaume Gomez-7/+22
2023-01-01Rustdoc-Json: Report discriminant on all kinds of enum variant.Nixon Enraght-Moony-5/+7
Closes #106299
2023-01-01clean: Always store enum disriminant.Nixon Enraght-Moony-3/+6
2022-12-02Rustdoc-Json: Don't include foreign traitsNixon Enraght-Moony-52/+1
2022-12-01rustc_ast_lowering: Stop lowering imports into multiple itemsVadim Petrochenkov-1/+1
Lower them into a single item with multiple resolutions instead. This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
2022-11-21Unreserve braced enum variants in value namespaceVadim Petrochenkov-5/+5
2022-11-16rustdoc JSON: Use `Function` everywhere and remove `Method`Martin Nordholts-22/+7
2022-11-13fix some typos in commentscui fliter-2/+2
Signed-off-by: cui fliter <imcusg@gmail.com>
2022-11-05rustdoc: use `ThinVec` and `Box<str>` to shrink `clean::ItemKind`Michael Howell-1/+1
2022-11-04Rollup merge of #103935 - GuillaumeGomez:remove-rustdoc-visibility-ty, ↵Matthias Krüger-6/+5
r=notriddle Remove rustdoc clean::Visibility type Fixes #90852. Follow-up of https://github.com/rust-lang/rust/pull/103690. This PR completely removes the rustdoc `clean::Visibility` type to use the `rustc_middle` one instead. I don't think there will be any impact on perf. r? `@notriddle`
2022-11-03Remove rustdoc clean::Visibility typeGuillaume Gomez-6/+5
2022-11-02rustdoc: remove unneeded Box from ItemKindMichael Howell-1/+1
2022-10-30Make rustdoc Item::visibility computed on-demandGuillaume Gomez-1/+2
2022-10-05rustdoc: render more cross-crate hrtbs properlyLeón Orell Valerian Liehr-2/+3
2022-09-27rustdoc: remove `clean::TraitWithExtraInfo`Michael Howell-1/+0
Instead, it gathers the extra info later, when it's actually requested.
2022-09-26 Rustdoc-Json: List impls for primitivesNixon Enraght-Moony-3/+11
Closes #101695
2022-09-13Rustdoc-Json: Don't loose subitems of foreign traits.Nixon Enraght-Moony-2/+13
2022-09-10Rustdoc-Json: Correcty handle intra-doc-links to items without HTML pageNixon Enraght-Moony-2/+9
Closes #101531
2022-09-07Rustdoc-Json: More accurate struct type.Nixon Enraght-Moony-25/+11
Closes #101489
2022-09-05Rustdoc-Json: Store Variant Fields as their own item.Nixon Enraght-Moony-11/+21
Closes #100587 Closes #92945
2022-09-05Auto merge of #101386 - aDotInTheVoid:rdj-discriminant, r=GuillaumeGomezbors-1/+13
Rustdoc-Json: Add enum discriminant Does the first part of #101337, by adding it to `clean`, but doesn't change HTML output, as 1. [No Consensus has appeared on the UI for this](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Enum.20discriminant.20values.20in.20HTML.20output) 2. [When inlining across crates, information is lost](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/.60clean_variant_def.20.60vs.20.60clean_variant_data.60) JSON doesn't have either of these limitations. r? `@GuillaumeGomez`
2022-09-04rustdoc: Compute enum discriminant on demandNixon Enraght-Moony-8/+10
2022-09-03Rustdoc-Json: Add enum discriminantNixon Enraght-Moony-1/+11
2022-09-03remove redundant clonesMatthias Krüger-1/+1
2022-08-29Rollup merge of #101106 - aDotInTheVoid:rdj-stripped-mod, r=GuillaumeGomezMatthias Krüger-3/+51
Rustdoc-Json: Retain Stripped Modules when they are imported, not when they have items Fixes #101103 Fixes #100973 r? `@GuillaumeGomez`
2022-08-29Rustdoc-Json: Retain Stripped Modules when they are imported, not when they ↵Nixon Enraght-Moony-3/+51
have items. Fixes #101103 Fixes #100973
2022-08-28Auto merge of #100497 - kadiwa4:remove_clone_into_iter, r=cjgillotbors-5/+6
Avoid cloning a collection only to iterate over it `@rustbot` label: +C-cleanup
2022-08-21Auto merge of #100645 - notriddle:notriddle/rustdoc-diet-plan, r=GuillaumeGomezbors-3/+3
rustdoc: strategic boxing to reduce the size of ItemKind and Type The `Type` change redesigns `QPath` to box the entire data structure instead of boxing `self_type` and the `trait_`. This reduces the size of several `ItemKind` variants, leaving `Impl` as the biggest variant. The `ItemKind` change boxes that variant's payload.
2022-08-16rustdoc: box ItemKind::TraitMichael Howell-1/+1
This reduces the memory consumption of ItemKind.
2022-08-17Rollup merge of #100630 - Enselic:export_extern_crate_as_self, r=GuillaumeGomezTakayuki Maeda-2/+2
rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>` Closes #100531 r? `@GuillaumeGomez` `@rustbot` labels +A-rustdoc-json +T-rustdoc
2022-08-16rustdoc: factor Type::QPath out into its own boxMichael Howell-2/+2
This reduces the size of Type.