summary refs log tree commit diff
path: root/src/librustdoc/json
AgeCommit message (Collapse)AuthorLines
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.
2022-08-16rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>`Martin Nordholts-2/+2
2022-08-15Handle correctly stripped enum variant fieldsGuillaume Gomez-6/+4
2022-08-13Rollup merge of #100335 - aDotInTheVoid:rdj-resolved-path, r=GuillaumeGomezMichael Goulet-26/+20
Rustdoc-Json: Add `Path` type for traits. Avoids using `Type` for trait fields, as a trait must always be a path, and not any other kind of type. ``@rustbot`` modify labels: +A-rustdoc-json +T-rustdoc Closes #100106
2022-08-13make clean::Item::span return option instead of dummy spanMichael Goulet-1/+1
2022-08-13avoid cloning and then iteratingKaDiWa-5/+6
2022-08-10Rustdoc-Json: Add `Path` type for traits.Nixon Enraght-Moony-26/+20
Closes #100106
2022-08-10Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelidMatthias Krüger-18/+12
rustdoc-json: Remove doc FIXME for Import::id and explain Also add some test and refactor related code a bit. ``@rustbot`` labels +A-rustdoc-json +T-rustdoc
2022-08-03Rustdoc-Json: Add and use `FromWithTcx` for `Vec`Nixon Enraght-Moony-33/+31
2022-08-03Rustdoc-Json: Extract `convert_lifetime` to functionNixon Enraght-Moony-6/+10
2022-08-03Rustdoc-Json: Document HRTB's on DynTraitNixon Enraght-Moony-26/+22
Closes #99118
2022-07-29Box FunctionItem, TyMethodItem, MethodItem, ForeignFunctionItemest31-4/+4
This reduces ItemKind size from 160 bytes to 112 bytes
2022-07-29Box TypedefItem, ImplItem, AssocTypeItem variants of ItemKindest31-6/+6
This reduces ItemKind size from 224 bytes to 160 bytes.
2022-07-22Auto merge of #99598 - GuillaumeGomez:clean-trait-fields-on-demand, r=notriddlebors-2/+4
Make some clean::Trait fields computation on demand r? `@notriddle`
2022-07-22Make some clean::Trait fields computation on demandGuillaume Gomez-2/+4
2022-07-21Remove unused field in ItemKind::KeywordItemGuillaume Gomez-2/+2
2022-07-19rustdoc-json: De-duplicate `FromWithTcx<clean::Import>`Martin Nordholts-18/+12