about summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2022-07-20Remove unused StableMap and StableSet types from rustc_data_structuresMichael Woerister-1/+4
2022-07-20Remove CSS transition for search input border-colorGuillaume Gomez-1/+0
2022-07-20Fix CSS on search input focusGuillaume Gomez-3/+21
2022-07-20Fix crate filter select displayGuillaume Gomez-3/+1
2022-07-19rustdoc-json: De-duplicate `FromWithTcx<clean::Import>`Martin Nordholts-18/+12
2022-07-19Auto merge of #98180 - notriddle:notriddle/rustdoc-fn, ↵bors-10/+43
r=petrochenkov,GuillaumeGomez Improve the function pointer docs This is #97842 but for function pointers instead of tuples. The concept is basically the same. * Reduce duplicate impls; show `fn (T₁, T₂, …, Tₙ)` and include a sentence saying that there exists up to twelve of them. * Show `Copy` and `Clone`. * Show auto traits like `Send` and `Sync`, and blanket impls like `Any`. https://notriddle.com/notriddle-rustdoc-test/std/primitive.fn.html
2022-07-19Improve the function pointer docsMichael Howell-7/+27
* Reduce duplicate impls; show only the `fn (T)` and include a sentence saying that there exists up to twelve of them. * Show `Copy` and `Clone`. * Show auto traits like `Send` and `Sync`, and blanket impls like `Any`.
2022-07-18Group CSS font ruleGuillaume Gomez-12/+9
2022-07-18Rollup merge of #99344 - ↵Dylan DPC-5/+37
notriddle:notriddle/multiple-macro-rules-w-same-name, r=GuillaumeGomez rustdoc: avoid inlining items with duplicate `(type, name)` Fixes #99221
2022-07-17rustdoc: extend `#[doc(tuple_variadic)]` to fn pointersMichael Howell-9/+22
The attribute is also renamed `fake_variadic`.
2022-07-17Fix auto-expand of trees in source code page sidebarGuillaume Gomez-1/+1
2022-07-16rustdoc: avoid inlining items with duplicate `(type, name)`Michael Howell-5/+37
Fixes #99221
2022-07-16Stabilize `let_chains`Caio-1/+1
2022-07-16Rollup merge of #99287 - GuillaumeGomez:rustdoc-json-double-export, r=notriddleMatthias Krüger-10/+64
[rustdoc-json] JSON no longer inlines Fixes #98007. Fixes #96161. Fixes https://github.com/rust-lang/rust/issues/83057. Fixes https://github.com/rust-lang/rust/issues/83720. I took over #93518 and applied the comments and added more tests. There was one thing missing (which is in the second commit): if a non-exported item was used in a public API but not reexported, it was still missing. cc `@CraftSpider` `@Urgau` `@Enselic` r? `@notriddle`
2022-07-16Correctly handle usage of private items in public API for JSON output formatGuillaume Gomez-4/+22
2022-07-16Fix rustdoc JSON inlineGuillaume Gomez-6/+42
2022-07-15Rollup merge of #99209 - GuillaumeGomez:crate-level-sidebar, r=jshaDylan DPC-18/+15
Correctly handle crate level page on docs.rs as well Fixes #99121. On docs.rs, they move the `class` attribute into a child which still has `rustdoc`. So instead of using the `<body>`, we can simply use this one directly. r? `@jsha`
2022-07-15Rollup merge of #99237 - GuillaumeGomez:rustdoc-css-cleanup, r=notriddleDylan DPC-48/+6
removed unused CSS and unused HTML IDs I think that should cover most remaining unused CSS/HTML IDs. r? `@notriddle`
2022-07-14Correctly handle crate level page on docs.rs as wellGuillaume Gomez-18/+15
2022-07-14Auto merge of #95956 - yaahc:stable-in-unstable, r=cjgillotbors-1/+1
Support unstable moves via stable in unstable items part of https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/moving.20items.20to.20core.20unstably and a blocker of https://github.com/rust-lang/rust/pull/90328. The libs-api team needs the ability to move an already stable item to a new location unstably, in this case for Error in core. Otherwise these changes are insta-stable making them much harder to merge. This PR attempts to solve the problem by checking the stability of path segments as well as the last item in the path itself, which is currently the only thing checked.
2022-07-14Removed unused HTML IDsGuillaume Gomez-2/+0
2022-07-14Remove unused CSSGuillaume Gomez-46/+6
2022-07-13Rename `debugging_opts` to `unstable_opts`Joshua Nelson-27/+27
This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear.
2022-07-13Auto merge of #99203 - GuillaumeGomez:rollup-b2re0dv, r=GuillaumeGomezbors-164/+46
Rollup of 10 pull requests Successful merges: - #98789 (rustdoc-json-types: Clean up derives.) - #98848 (Build the Clippy book as part of x.py doc) - #99020 (check non_exhaustive attr and private fields for transparent types) - #99132 (Add some autolabels for A-bootstrap and T-infra) - #99148 (Clarify that [iu]size bounds were only defined for the target arch) - #99152 (Use CSS variables to handle theming (part 2)) - #99168 (Add regression test for #74713) - #99176 (:arrow_up: rust-analyzer) - #99183 (Mention rust-analyzer maintainers when `proc_macro` bridge is changed) - #99185 (llvm-wrapper: adapt for LLVM API change) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-07-13Rollup merge of #99152 - GuillaumeGomez:css-theme-var, r=jshaGuillaume Gomez-163/+45
Use CSS variables to handle theming (part 2) Follow-up of https://github.com/rust-lang/rust/pull/98460. As usual, there shouldn't be any UI change. You can test it [here](https://rustdoc.crud.net/imperio/css-theme-var/bar/index.html). r? `@jsha`
2022-07-13Rollup merge of #98789 - aDotInTheVoid:rjdt-derives, r=jshaGuillaume Gomez-1/+1
rustdoc-json-types: Clean up derives. 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. ``@rustbot`` modify labels: +T-rustdoc +A-rustdoc-json
2022-07-13Auto merge of #99066 - est31:remove_box_librustdoc, r=jshabors-39/+47
Remove most box syntax from librustdoc This is the second attempt after the librustdoc specific changes have been reverted from #87781 in #89134, due to a minor, but exant regression caused by the changes. ~~There have been some changes to librustdoc in the past and maybe thanks to them there is no regression any more. If there is still a regression, one can investigate further and maybe find ways to fix the regressions. Thus, i request a perf run.~~ Edit: turns out there is still a regression, but it's caused only by a subset of the changes. So I've changed this PR to only contains the changes that don't cause any performance regressions, keeping the regression causing changes for a later PR.
2022-07-11Remove box syntax from Box<BareFunctionDecl> constructionest31-3/+3
The type has 144 bytes according to compiler internal rustdoc.
2022-07-11Remove box syntax for Box<rustdoc::clean::types::Type> constructionest31-11/+11
The type has 80 bytes according to compiler internal rustdoc.
2022-07-11Remove box syntax for Box<ImplItem> constructionest31-5/+5
ImplItem only has 80 bytes according to compiler internal rustdoc.
2022-07-11Remove box syntax for Box<Attributes> constructionest31-6/+12
Attributes only has 48 bytes according to compiler internal rustdoc.
2022-07-11Remove box syntax from Box<dyn Iterator> constructionest31-6/+8
The iterators created should be pretty light weight.
2022-07-11Rollup merge of #99142 - ↵Matthias Krüger-23/+50
notriddle:notriddle/doctest-multiline-crate-attributes, r=GuillaumeGomez fix(doctest): treat fatal parse errors as incomplete attributes Fixes #99089
2022-07-11Continue themes CSS migration over CSS variablesGuillaume Gomez-130/+45
2022-07-11Remove unused CSS rulesGuillaume Gomez-33/+0
2022-07-11Fix rustdoc -Zhelp and -Chelp optionsGuillaume Gomez-11/+11
2022-07-10fix(doctest): treat fatal parse errors as incomplete attributesMichael Howell-23/+50
Fixes #99089
2022-07-11Remove box syntax from doctest.rsest31-7/+7
Doctests are fairly cold code, so even if there is a regression, which i doubt, it won't matter.
2022-07-11Remove box syntax from Box<function pointer> constructionest31-1/+1
The function pointer should be extremely small, close to pointer size.
2022-07-11Rollup merge of #99114 - GuillaumeGomez:css-cleanup, r=Dylan-DPCMatthias Krüger-7/+3
Group .test-arrow CSS rules and fix rgb/rgba property Surprisingly, the web browsers were handling the `rgb`/`rgba` typo correctly. At least it now is as expected. For the rest, it's simply grouping `.test-arrow` rules. r? ``@Dylan-DPC``
2022-07-10Group .test-arrow CSS rules and fix rgb/rgba propertyGuillaume Gomez-7/+3
2022-07-10Rollup merge of #99086 - GuillaumeGomez:search-result-crate-filter-dropdown, ↵Matthias Krüger-1/+2
r=notriddle Fix display of search result crate filter dropdown In case a crate name is too long, the `<select>` completely overflows its parent. Another problem is that there is left margin on the `select` which break the alignment. You can see both issues here: ![Screenshot from 2022-07-09 15-31-12](https://user-images.githubusercontent.com/3050060/178108959-0eb5af19-ec60-4d34-a2fd-c27147683c78.png) And with the fix: ![Screenshot from 2022-07-09 15-33-37](https://user-images.githubusercontent.com/3050060/178108980-71030a92-84ee-4ee5-98e3-f97d03a6fbaf.png) cc `@jsha` r? `@notriddle`
2022-07-10Rollup merge of #99045 - 1011X:patch-1, r=GuillaumeGomezMatthias Krüger-1/+11
improve print styles this change removes some interactive elements in ``@media` print` form. more specifically, it removes the sidebar, source links, the expand/collapse toggle buttons, and the `#copy-path` button. it also adjusts some spacing and removes the `.top-doc` description completely if it's currently collapsed.
2022-07-09Fix display of search result crate filter dropdownGuillaume Gomez-1/+2
2022-07-08add opt in attribute for stable-in-unstable itemsJane Lusby-1/+1
2022-07-08set all padding for main element in printInfra-1/+1
2022-07-08Rollup merge of #95635 - davidtwco:terminal-width-stabilization, r=oli-obkMatthias Krüger-4/+24
sess: stabilize `--terminal-width` as `--diagnostic-width` Formerly `-Zterminal-width`, `--terminal-width` allows the user or build tool to inform rustc of the width of the terminal so that diagnostics can be truncated. Pending agreement to stabilize, see tracking issue at #84673. r? ```@oli-obk```
2022-07-08try to fix tidy issuesInfra-10/+10
2022-07-08improve print stylesInfra-1/+11
this change removes some interactive elements in `@media print` form. more specifically, it removes the source links, the expand/collapse toggle buttons, and the `#copy-path` button. it also adjusts some spacing and removes the `.top-doc` description completely if it's currently collapsed.
2022-07-07Auto merge of #99024 - matthiaskrgr:rollup-8ygpcpg, r=matthiaskrgrbors-18/+24
Rollup of 9 pull requests Successful merges: - #97917 (Implement ExitCodeExt for Windows) - #98844 (Reword comments and rename HIR visiting methods.) - #98979 (interpret: use AllocRange in UninitByteAccess) - #98986 (Fix missing word in comment) - #98994 (replace process exit with more detailed exit in src/bootstrap/*.rs) - #98995 (Add a test for #80471) - #99002 (suggest adding a derive for #[default] applied to variants) - #99004 (Add a test for #70408) - #99017 (Replace boolean argument for print_where_clause with an enum to make code more clear) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup