| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-10-10 | Auto merge of #89695 - jsha:more-templates, r=GuillaumeGomez | bors | -0/+1 | |
| Move top part of print_item to Tera templates Part of #84419. This moves the first line of each item page (E.g. `Struct foo::Bar .... 1.0.0 [-][src]` into a Tera template. I also moved template initialization into its own module and added a small macro to reduce duplication and opportunity for errors. | ||||
| 2021-10-09 | Auto merge of #88379 - camelid:cleanup-clean, r=jyn514 | bors | -67/+53 | |
| rustdoc: Cleanup various `clean` types Cleanup various `clean` types. | ||||
| 2021-10-08 | Move template initialization into its own file. | Jacob Hoffman-Andrews | -0/+1 | |
| 2021-10-04 | heading_level: u32 -> heading_offset: HeadingOffset | Mukund Lakshman | -16/+26 | |
| 2021-10-04 | No need to default offset since we always override it. | Mukund Lakshman | -8/+4 | |
| 2021-10-04 | Change `Markdown(...)` to `Markdown { ... }` | Mukund Lakshman | -19/+19 | |
| 2021-10-04 | Fix heading for methods on trait impls. | Mukund Lakshman | -1/+1 | |
| 2021-10-04 | librustdoc: Use correct heading levels. | Mukund Lakshman | -14/+38 | |
| - Avoid multiple <h1>s on a page. - The <h#> tags should follow a semantic hierarchy. - Cap at h6 (no h7) | ||||
| 2021-10-02 | Replace all uses of `path.res.def_id()` with `path.def_id()` | Noah Lev | -1/+1 | |
| 2021-09-30 | Remove temporary `GetDefId` impl for `Path` | Noah Lev | -56/+40 | |
| 2021-09-30 | Use `Path` instead of `Type` in `PolyTrait` | Noah Lev | -9/+11 | |
| The change to `impl Clean<Path> for hir::TraitRef<'_>` was necessary to fix a test failure for `src/test/rustdoc/trait-alias-mention.rs`. Here's why: The old code path was through `impl Clean<Type> for hir::TraitRef<'_>`, which called `resolve_type`, which in turn called `register_res`. Now, because `PolyTrait` uses a `Path` instead of a `Type`, the impl of `Clean<Path>` was being run, which did not call `register_res`, causing the trait alias to not be recorded in the `external_paths` cache. | ||||
| 2021-09-30 | Make `Impl.trait_` a `Path`, not a `Type` | Noah Lev | -2/+2 | |
| It should only ever be a `ResolvedPath`, so this (a) enforces that, and (b) reduces the size of `Impl`. I had to update a test because the order of the rendered auto trait impl bounds changed. I think the order changed because rustdoc sorts auto trait bounds using their `Debug` output. | ||||
| 2021-09-30 | Remove visible path calculation from allowed deprecation lint | Alik Aslanyan | -2/+2 | |
| 2021-09-12 | Rollup merge of #88810 - camelid:cleanup-pt1, r=jyn514 | Manish Goregaokar | -22/+24 | |
| rustdoc: Cleanup `clean` part 1 Split out from #88379. These commits are completely independent of each other, and each is a fairly small change (the last few are new commits; they are not from #88379): - Remove unnecessary `Cache.*_did` fields - rustdoc: Get symbol for `TyParam` directly - Create a valid `Res` in `external_path()` - Remove unused `hir_id` parameter from `resolve_type` - Fix redundant arguments in `external_path()` - Remove unnecessary `is_trait` argument - rustdoc: Cleanup a pattern match in `external_generic_args()` r? ``@jyn514`` | ||||
| 2021-09-11 | Only take `tcx` when it's all that's needed | Noah Lev | -7/+12 | |
| 2021-09-09 | Remove unnecessary `Cache.*_did` fields | Noah Lev | -22/+19 | |
| They can be obtained by accessing the `TyCtxt` where they are needed. | ||||
| 2021-09-09 | Ignore automatically derived impls of `Clone` and `Debug` in dead code analysis | Fabian Wolff | -2/+0 | |
| 2021-09-01 | Auto merge of #88490 - GuillaumeGomez:associated-types-implementors-display, ↵ | bors | -29/+62 | |
| r=camelid,Manishearth Display associated types of implementors Fixes #86631. Contrary to before, it doesn't display methods. I also had to "resurrect" the `auto-hide-trait-implementations` setting. :3 Only question at this point: should I move the `render_impl` boolean arguments into one struct? We're starting to have quite a lot of them... cc `@cynecx` r? `@camelid` | ||||
| 2021-09-01 | Remove implementors setting | Guillaume Gomez | -1/+0 | |
| 2021-09-01 | Clean render_impl arguments | Guillaume Gomez | -36/+52 | |
| 2021-08-31 | Remove bolding on associated constants | Noah Lev | -1/+1 | |
| Associated types don't get bolded, so it looks off to have one kind bolded and one not. | ||||
| 2021-08-30 | Put back "auto-collapse-implementors" setting | Guillaume Gomez | -0/+1 | |
| 2021-08-30 | Put back display of associated items (types and consts) | Guillaume Gomez | -7/+24 | |
| 2021-08-22 | Move Cache from Context to SharedContext | Joshua Nelson | -18/+17 | |
| 2021-08-05 | Remove LightSpan and use Span directly | Guillaume Gomez | -1/+1 | |
| 2021-08-05 | Wrap the span_map tuple index into a type called "LightSpan" | Guillaume Gomez | -1/+1 | |
| 2021-08-05 | Add links on source types to go to definition | Guillaume Gomez | -0/+2 | |
| 2021-07-29 | Rollup merge of #87451 - GuillaumeGomez:tuple-struct-field-doc, r=jyn514 | Yuki Okushi | -0/+3 | |
| Add support for tuple struct field documentation Fixes #42615. This is #80320 updated to new codebase and with added tests. Part of https://github.com/rust-lang/rust/issues/83255. cc ```@camelid``` (since you were involved on the original PR). r? ```@jyn514``` | ||||
| 2021-07-25 | Rustdoc accessibility: use real headers for doc items | bors | -11/+11 | |
| Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html | ||||
| 2021-07-25 | Add support for tuple structs' fields documentation | Guillaume Gomez | -0/+3 | |
| 2021-07-17 | Rustdoc accessibility: make the sidebar headers actual headers | Michael Howell | -27/+27 | |
| Part of #87059 Preview it at: https://notriddle.com/notriddle-rustdoc-test/rustdoc-sidebar-header/std/index.html | ||||
| 2021-07-16 | Auto merge of #86662 - mockersf:fix-86620-link-unknown-location, r=jyn514 | bors | -8/+11 | |
| fix dead link for method in trait of blanket impl from third party crate fix #86620 * changes `href` method to raise the actual error it had instead of an `Option` * set the href link correctly in case of an error I did not manage to make a small reproducer, I think it happens in a situation where * crate A expose a trait with a blanket impl * crate B use the trait from crate A * crate C use types from crate B * building docs for crate C without dependencies r? `@jyn514` | ||||
| 2021-07-11 | comment about link without a href | François Mockers | -0/+1 | |
| 2021-07-08 | Fix display of small-section-header elements | Guillaume Gomez | -1/+1 | |
| 2021-07-06 | only remove link for TyMethod | François Mockers | -4/+4 | |
| 2021-07-06 | review - better error names/doc | François Mockers | -1/+1 | |
| 2021-07-06 | fix dead link for method in trait of blanket impl from third party crate | François Mockers | -8/+10 | |
| 2021-07-05 | Revert "rustdoc: Store DefId's in ItemId on heap for decreasing Item's size" | Justus K | -14/+7 | |
| This reverts commit 41a345d4c46dad1a98c9993bc78513415994e8ba. | ||||
| 2021-07-05 | rustdoc: Store DefId's in ItemId on heap for decreasing Item's size | Justus K | -7/+14 | |
| 2021-07-05 | rustdoc: Rename `expect_real` to `expect_def_id`, remove `Item::is_fake` | Justus K | -4/+4 | |
| 2021-07-05 | rustdoc: Replace `FakeDefId` with new `ItemId` type | Justus K | -2/+2 | |
| 2021-07-01 | fix(rustdoc): generics search | Michael Howell | -1/+8 | |
| This commit adds a test case for generics, re-adds generics data to the search index, and tweaks function indexing to use less space in JSON. This reverts commit 14ca89446c076bcf484d3d05bd991a4b7985a409. | ||||
| 2021-06-26 | Rollup merge of #86608 - notriddle:notriddle/cleanup-rustdoc, r=jyn514 | Yuki Okushi | -24/+0 | |
| chore(rustdoc): remove unused members of RenderType PR #86561 removes the only place the `generics` member is read. This PR does even more cleanup. | ||||
| 2021-06-24 | chore(rustdoc): remove unused members of RenderType | Michael Howell | -24/+0 | |
| Commit e629381653bb3579f0cea0b256e391edef5e8dbb removes the only place these members variables are actually read. | ||||
| 2021-06-24 | Migrate from custom elements to divs with classes to be compatible with safari | Stefan Schindler | -1/+1 | |
| 2021-06-24 | Hide Crate Version on narrow Screens | Stefan Schindler | -0/+1 | |
| 2021-06-24 | Rollup merge of #86561 - notriddle:notriddle/cleanup-rustdoc, r=jyn514 | Yuki Okushi | -22/+0 | |
| chore(rustdoc): Remove unused impl block | ||||
| 2021-06-22 | Revert "List trait impls before methods from deref in the sidebar of ↵ | Jacob Hoffman-Andrews | -8/+8 | |
| Rustdoc's output" This reverts commit 8a058926ecd6d0988714f8f7a5a31293c533f8c6. | ||||
| 2021-06-22 | chore(rustdoc): Remove unused impl block | Michael Howell | -22/+0 | |
| 2021-06-21 | Check for const_unstable before printing `const` | Deadbeef | -13/+17 | |
