about summary refs log tree commit diff
path: root/src/librustdoc/json
AgeCommit message (Collapse)AuthorLines
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
2022-07-17rustdoc: extend `#[doc(tuple_variadic)]` to fn pointersMichael Howell-1/+1
The attribute is also renamed `fake_variadic`.
2022-07-16Fix rustdoc JSON inlineGuillaume Gomez-4/+35
2022-07-02rustdoc-json-types: Clean up derives.Nixon Enraght-Moony-1/+1
Closes #96189 Closes #96189 Everything is `Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize` except `Crate` and `Item` which arn't `Hash`, as they have `HashMap`'s. See linked issue for reasoning.
2022-06-29rustdoc-json: Make default value of blanket impl assoc types workMartin Nordholts-1/+1
2022-06-28Auto merge of #98475 - notriddle:notriddle/index-fn-signatures, r=GuillaumeGomezbors-1/+0
rustdoc: reference function signature types from the `p` array This reduces the size of the function signature index, because it's common to have many functions that operate on the same types. $ wc -c search-index-old.js search-index-new.js 5224374 search-index-old.js 3932314 search-index-new.js By my math, this reduces the uncompressed size of the search index by 32%. On compressed signatures, the wins are less drastic, a mere 8%: $ wc -c search-index-old.js.gz search-index-new.js.gz 404532 search-index-old.js.gz 371635 search-index-new.js.gz
2022-06-28Rollup merge of #98611 - GuillaumeGomez:rustdoc-json-glob-ice, r=notriddleMatthias Krüger-1/+6
Fix glob import ICE in rustdoc JSON format Fixes #98003. r? `@notriddle`
2022-06-28Fix glob import ICE in rustdoc JSON formatGuillaume Gomez-1/+6
2022-06-27Fix kind for associated types in rustdoc JSON output for trait implementationsGuillaume Gomez-2/+5