about summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2022-05-29Rollup merge of #97530 - GuillaumeGomez:more-eslint-checks, r=jshaMichael Goulet-0/+7
Add more eslint checks Here is a new batch of eslint checks: * [no-const-assign](https://eslint.org/docs/rules/no-const-assign) * [no-debugger](https://eslint.org/docs/rules/no-debugger) * [no-dupe-args](https://eslint.org/docs/rules/no-dupe-args) * [no-duple-else-if](https://eslint.org/docs/rules/no-dupe-else-if) * [no-dupe-keys](https://eslint.org/docs/rules/no-dupe-keys) * [no-duplicate-case](https://eslint.org/docs/rules/no-duplicate-case) * [no-ex-assign](https://eslint.org/docs/rules/no-ex-assign) r? ``@notriddle``
2022-05-29Add "no-ex-assign" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-duplicate-case" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-dupe-keys" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-dupe-else-if" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-dup-args" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-debugger" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-const-assign" eslint ruleGuillaume Gomez-0/+1
2022-05-29Fix order of closing HTML elements in rustdoc outputJan-Erik Rediger-1/+1
2022-05-29Auto merge of #96652 - notriddle:notriddle/self, r=GuillaumeGomezbors-62/+159
rustdoc: include impl generics / self in search index Fixes #92205
2022-05-28Improve settings page display with disabled javascriptGuillaume Gomez-0/+5
2022-05-28Auto merge of #97433 - GuillaumeGomez:rm-refcell-context, r=notriddlebors-111/+128
Pass Context as a &mut to allow to remove RefCell fields Fixes #90323. r? `@notriddle`
2022-05-28Rollup merge of #97462 - GuillaumeGomez:more-eslint-rules, r=notriddleMatthias Krüger-6/+15
Add more eslint rules The last one is the most useful of this batch. :) Here are the links for the eslint rules: * [arrow-parens](https://eslint.org/docs/rules/arrow-parens) * [no-unused-vars](https://eslint.org/docs/rules/no-unused-vars) * [eqeqeq](https://eslint.org/docs/rules/eqeqeq) r? `@notriddle`
2022-05-27Add "eqeqeq" eslint ruleGuillaume Gomez-6/+7
2022-05-27Add "no-unused-vars" eslint ruleGuillaume Gomez-0/+7
2022-05-27Add "arrow-parens" eslint ruleGuillaume Gomez-0/+1
2022-05-27Pass Context as a &mut to allow to remove RefCell fieldsGuillaume Gomez-111/+128
2022-05-27cleanup librustdoc by making parent stack store itemsMichael Howell-90/+84
2022-05-27Auto merge of #96790 - lqd:update_jemalloc, r=Mark-Simulacrumbors-3/+1
Update jemalloc to v5.3 Now that `jemalloc` version 5.3 has been released, this PR updates `tikv-jemalloc-sys` to the corresponding release. The crates.io publishing issue seems to have been resolved for the `jemalloc-sys` package, and version 5.3.0 is now also available under the historical name (and should become the preferred crate to be used). Therefore, this PR also switches back to using `jemalloc-sys` instead of `tikv-jemalloc-sys`.
2022-05-27Auto merge of #97442 - hafeoz:master, r=GuillaumeGomezbors-1/+3
Fix multiline attributes processing in doctest Fixes #97440. It seems like the call to `check_if_attr_is_complete` is not provided with the correct argument: the pending attribute should be passed, while the current line is actually being passed. This causes any attribute with more than 2 lines to fail and produces ICE when running through doctest.
2022-05-26Rollup merge of #97066 - petrochenkov:nofragkind, r=camelidMichael Goulet-114/+53
rustdoc: Remove `ItemFragment(Kind)` And stop using `write!` when rendering URL fragments to avoid impossible errors.
2022-05-26Formattinghafeoz-1/+3
2022-05-26Use correct var for attribute completeness fnhafeoz-1/+1
2022-05-26rustdoc: factor orphan impl items into an actual structMichael Howell-12/+20
2022-05-26Rollup merge of #97394 - GuillaumeGomez:more-eslint-rules, r=notriddleGuillaume Gomez-7/+14
Add more eslint rules This PR adds more eslint rules. Here are the explanations for each of them: * [space-infix-ops](https://eslint.org/docs/rules/space-infix-ops) * [space-before-function-paren](https://eslint.org/docs/rules/space-before-function-paren) * [space-before-blocks](https://eslint.org/docs/rules/space-before-blocks) * [comma-dangle](https://eslint.org/docs/rules/comma-dangle) * [comma-style](https://eslint.org/docs/rules/comma-style) * [max-len](https://eslint.org/docs/rules/max-len) * [eol-last](https://eslint.org/docs/rules/eol-last) r? `@notriddle`
2022-05-26Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jshaGuillaume Gomez-36/+39
Allow to click on setting text You can test it [here](https://rustdoc.crud.net/imperio/gui-settings-text-click/doc/foo/index.html). This PR allows to click on the text alongside the toggle to change it. r? `@jsha`
2022-05-25rustdoc: include impl generics / self in search indexMichael Howell-17/+112
2022-05-25Add new eslint rule "eol-last"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "max-len"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "comma-style"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "comma-dangle"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "space-before-blocks"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "space-before-function-paren"Guillaume Gomez-7/+8
2022-05-25Add eslint rule "space-infix-ops"Guillaume Gomez-0/+1
2022-05-25update jemalloc-sys to jemalloc v5.3Rémy Rakic-3/+1
2022-05-25Auto merge of #97365 - klensy:rustdoc-vs-clippy, r=notriddlebors-105/+104
rustdoc: fix few clippy lints Fix few clippy lints: second commit - perf ones, first - other ones.
2022-05-25Rollup merge of #97358 - GuillaumeGomez:update-minifier, r=Dylan-DPCYuki Okushi-1/+1
Update minifier-rs version to 0.1.0 It fixes a bug with regex parsing. r? `@notriddle`
2022-05-25Rollup merge of #97355 - GuillaumeGomez:remove-brush, r=Dylan-DPCYuki Okushi-1/+0
Remove unused brush image r? `@notriddle`
2022-05-24fix clippy perf lintsklensy-15/+23
2022-05-24fix simple clippy lintsklensy-90/+81
2022-05-24Update minifier-rs version to 0.1.0Guillaume Gomez-1/+1
2022-05-24Rollup merge of #97288 - compiler-errors:tcxify-rustdoc, r=Dylan-DPCDylan DPC-150/+162
Lifetime variance fixes for rustdoc #97287 migrates rustc to a `Ty` type that is invariant over its lifetime `'tcx`, so I need to fix a bunch of places that assume that `Ty<'a>` and `Ty<'b>` can be unified by shortening both to some common lifetime. This is doable, since everything is already `'tcx`, so all this PR does is be a bit more explicit that elided lifetimes are actually `'tcx`. Split out from #97287 so the rustdoc team can review independently.
2022-05-24Remove unused brush imageGuillaume Gomez-1/+0
2022-05-24Allow to click on toggle text to update itGuillaume Gomez-36/+39
2022-05-23Auto merge of #94053 - GuillaumeGomez:fields-stripped, r=notriddlebors-54/+72
rustdoc: Remove fields_stripped fields (and equivalents) Fixes #90588. r? `@camelid`
2022-05-23Rollup merge of #97286 - GuillaumeGomez:eslint-check-fn, r=notriddleDylan DPC-0/+1
Add new eslint rule to prevent whitespace before function call paren It prevents `foo ()` basically. :) r? `@notriddle`
2022-05-23Greatly extend explanations on strip_hidden itemsGuillaume Gomez-1/+8
Co-authored-by: Michael Howell <michael@notriddle.com>
2022-05-23Auto merge of #97195 - notriddle:notriddle/cleanup, r=GuillaumeGomezbors-36/+37
rustdoc: shrink GenericArgs/PathSegment with boxed slices This PR also contains a few cleanup bits and pieces, but one of them is a broken intra-doc link, and the other is removing an unused Hash impl. The last commit is the one that matters.
2022-05-22Clean up `&args[..]`, use more readable `args.iter()` insteadMichael Howell-4/+4
2022-05-22Lifetime variance fixes for rustdocMichael Goulet-150/+162