about summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
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
2022-05-22Add new eslint rule to prevent whitespace before function call parenGuillaume Gomez-0/+1
2022-05-22Auto merge of #97177 - oli-obk:const-stability, r=davidtwcobors-7/+4
Implement proper stability check for const impl Trait, fall back to unstable const when undeclared Continuation of #93960 `@jhpratt` it looks to me like the test was simply not testing for the failure you were looking for? Your checks actually do the right thing for const traits?
2022-05-21Extend `substs_to_args` into a perfectly-sized Vec almost every timeMichael Howell-16/+16
2022-05-21Shrink GenericArgs/PathSegment with boxed slicesMichael Howell-19/+20
2022-05-21Remove unused Hash impl from DocFragmentKindMichael Howell-1/+1
2022-05-21rustdoc: Some link resolution caching cleanupVadim Petrochenkov-35/+16
2022-05-21rustdoc: Stop using `write!` in `UrlFragment::render`Vadim Petrochenkov-14/+16
2022-05-21rustdoc: Remove `ItemFragment(Kind)`Vadim Petrochenkov-74/+30
2022-05-21Auto merge of #97246 - GuillaumeGomez:rollup-btcok8x, r=GuillaumeGomezbors-0/+8
Rollup of 7 pull requests Successful merges: - #97190 (Add implicit call to from_str via parse in documentation) - #97218 (Add eslint checks) - #97219 (make ptr::invalid not the same as a regular int2ptr cast) - #97223 (Remove quadratic behaviour from -Zunpretty=hir-tree.) - #97232 (typo) - #97237 (Add some more weird-exprs) - #97238 (Bump LLVM fetched from CI to fix run-make) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-05-21Remove fields_stripped fields (and equivalents)Guillaume Gomez-53/+64
2022-05-21Rollup merge of #97218 - GuillaumeGomez:eslint-checks, r=notriddleGuillaume Gomez-0/+8
Add eslint checks The first check is to ensure that `=>` is always surrounded with whitespaces. The second is to ensure that the dict objects looks like this: `{"a": 2}` and not `{"a" : 2}` or `{"a":2}`. r? ``@notriddle``
2022-05-21Auto merge of #93963 - GuillaumeGomez:reduce-clean-type-size, r=notriddlebors-206/+213
rustdoc: Reduce clean::Type size There is no need to keep the `DefId` around since it's allow used to compute if we should show a cast or not. As such, we can simply directly store the boolean. I think it's not what you had in mind `@camelid` but I guess it's still an improvement? :wink: It was discussed in https://github.com/rust-lang/rust/pull/93941. r? `@camelid`
2022-05-21Remove `crate` visibility modifier in libs, testsJacob Pratt-882/+927
2022-05-20Add eslint key-spacing checkGuillaume Gomez-0/+4
2022-05-20Add eslint arrow-spacing checkGuillaume Gomez-0/+4
2022-05-20Rollup merge of #97179 - GuillaumeGomez:eslint-lint, r=notriddleGuillaume Gomez-2/+6
Add new lint to enforce whitespace after keywords r? `@notriddle`
2022-05-20Rollup merge of #96565 - notriddle:notriddle/impl-box, r=camelidGuillaume Gomez-1/+10
rustdoc: show implementations on `#[fundamental]` wrappers Fixes #92940
2022-05-19Add new lint to enforce whitespace after keywordsGuillaume Gomez-2/+6
2022-05-19Add and use stability helper methodsJacob Pratt-7/+4
This avoids an ambiguity (when reading) where `.level.is_stable()` is not immediately clear whether it is general stability or const stability.
2022-05-18Move some DOM generation into the HTML settings file directlyGuillaume Gomez-19/+15