about summary refs log tree commit diff
path: root/src/librustdoc/json/mod.rs
AgeCommit message (Collapse)AuthorLines
2023-11-15Re-format code with new rustfmtMark Rousskov-3/+3
2023-08-21rustdoc-json: Rename typedef to type aliasNoah Lev-1/+1
2023-08-16Improve code readability by moving fmt args directly into the stringGuillaume Gomez-3/+3
2023-04-26rustdoc-json: Time serialization.Alona Enraght-Moony-1/+4
2023-03-30Replace doc(primitive) with rustc_doc_primitiveGuillaume Gomez-1/+1
2023-02-18Improve code readabilityGuillaume Gomez-2/+2
2023-02-18Fix bad handling of primitive typesGuillaume Gomez-1/+1
2023-02-18Allow reexports of items with same name but different types to both appearGuillaume Gomez-9/+6
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-3/+3
Not all uses are converted, a few cases iterating through maps/sets and requiring nontrivial changes are kept.
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-16rustdoc JSON: Use `Function` everywhere and remove `Method`Martin Nordholts-2/+1
2022-11-13fix some typos in commentscui fliter-1/+1
Signed-off-by: cui fliter <imcusg@gmail.com>
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-2/+5
Closes #101695
2022-09-13Rustdoc-Json: Don't loose subitems of foreign traits.Nixon Enraght-Moony-2/+13
2022-08-29Rollup merge of #101106 - aDotInTheVoid:rdj-stripped-mod, r=GuillaumeGomezMatthias Krüger-1/+7
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-1/+7
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-16rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>`Martin Nordholts-2/+2
2022-08-13avoid cloning and then iteratingKaDiWa-5/+6
2022-07-16Fix rustdoc JSON inlineGuillaume Gomez-0/+9
2022-06-17Fix rustdoc handling of primitive documentationGuillaume Gomez-3/+3
2022-06-13Ignore impl items because they can be duplicated in case of generic implGuillaume Gomez-10/+43
2022-06-02Add Symbol into rustdoc JSON ID to prevent conflicts between reexportsGuillaume Gomez-8/+16
2022-05-21Remove `crate` visibility modifier in libs, testsJacob Pratt-1/+1
2022-04-16Rename `def_id` into `item_id` when the type is `ItemId` for readabilityGuillaume Gomez-9/+9
2022-03-14rustdoc-json-types: implementors -> implementationsNixon Enraght-Moony-1/+1
Closes #94198
2022-02-13rustdoc-json: buffer outputNixon Enraght-Moony-3/+6
2022-01-21Remove FIXME and fix inconsistency of local blanket impls by using HIR for themRune Tynan-14/+1
2022-01-20Rollup merge of #93099 - tomkris:rustdoc-fix, r=jshaMatthias Krüger-4/+8
rustdoc: auto create output directory when "--output-format json" This PR allows rustdoc to automatically create output directory in case it does not exist (when run with `--output-format json`). This fixes rustdoc crash: ```` $ rustdoc --output-format json -Z unstable-options src/main.rs error: couldn't generate documentation: No such file or directory (os error 2) | = note: failed to create or modify "doc/main.json" error: aborting due to previous error ```` With this fix behavior of `rustdoc --output-format json` becomes consistent with `rustdoc --output-format html` (which already auto-creates output directory if it's missing)
2022-01-20Rollup merge of #92860 - CraftSpider:rustdoc-json-impl-ice, r=jshaMatthias Krüger-1/+14
Fix errors on blanket impls by ignoring the children of generated impls Related to #83718 We can safely skip the children, as they don't contain any new info, and may be subtly different for reasons hard to track down, in ways that are consistently worse than the actual generic impl.
2022-01-19rustdoc: auto create output directory when "--output-format json"Artem Kryvokrysenko-4/+8
This PR allows rustdoc to automatically create output directory in case it does not exist (when run with `--output-format json`). This fixes rustdoc crash: ```` $ rustdoc --output-format json -Z unstable-options src/main.rs error: couldn't generate documentation: No such file or directory (os error 2) | = note: failed to create or modify "doc/main.json" error: aborting due to previous error ```` With this fix behavior of `rustdoc --output-format json` becomes consistent with `rustdoc --output-format html` (which already auto-creates output directory if it's missing)
2022-01-14rustdoc: avoid many `Symbol` to `String` conversions.Nicholas Nethercote-2/+2
Particularly when constructing file paths and fully qualified paths. This avoids a lot of allocations, speeding things up on almost all examples.
2022-01-13Move FIXME to if statementRune Tynan-4/+4
2022-01-13Update comment to make it a FIXMERune Tynan-2/+4
2022-01-13inline ItemId method, clarify comments a bitRune Tynan-3/+10
2022-01-13Fix errors on blanket impls by ignoring the children of their generated ↵Rune Tynan-1/+5
implementations
2021-12-30Auto merge of #92377 - compiler-errors:rustdoc-lifetimes, r=camelid,jyn514bors-1/+1
remove in_band_lifetimes from librustdoc r? `@camelid` closes #92368
2021-12-28remove in_band_lifetimes from librustdocMichael Goulet-1/+1
2021-12-27Move `ExternalLocation` to `clean::types`Noah Lev-2/+1
It was previously defined in `render::search_index` but wasn't used at all there. `clean::types` seems like a better fit since that's where `ExternalCrate` is defined.
2021-12-27Rename `rustdoc::html::render::cache` to `search_index`Noah Lev-1/+1
The old name wasn't very clear, while the new one makes it clear that this is the code responsible for creating the search index.
2021-10-15Moved format-version constant to rustdoc-json-typesYuval Dolev-1/+1
2021-10-08Rollup merge of #89669 - Urgau:json-remove-type-never, r=GuillaumeGomezGuillaume Gomez-1/+1
Remove special-casing of never primitive in rustdoc-json-types Fixes https://github.com/rust-lang/rust/issues/89349 r? `@GuillaumeGomez`
2021-10-08clippy::complexity fixesMatthias Krüger-1/+1
2021-10-08Remove special-casing of never primitive in rustdoc-json-typesLoïc BRANSTETT-1/+1
2021-10-04Rollup merge of #88234 - hkmatsumoto:rustdoc-impls-for-primitive, r=jyn514Manish Goregaokar-2/+21
rustdoc-json: Don't ignore impls for primitive types Fix the issue discussed at [Zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/.E2.9C.94.20Json.20output.20lacks.20some.20item.20which.20are.20supposed.20to.20be.20there) r? ``@jyn514``
2021-09-29Don't ignore impls for primitive typesHirochika Matsumoto-2/+21