about summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2022-05-30Improve display of `<details>` in doc blocksGuillaume Gomez-2/+14
2022-05-30Move theme rules out of settings.cssGuillaume Gomez-16/+39
2022-05-30Improve display of settings radio buttonsGuillaume Gomez-31/+78
2022-05-30Auto merge of #97489 - GuillaumeGomez:settings-js-disabled, r=notriddlebors-0/+5
Add sentence in case JS is disabled on settings.html page Instead of having an empty page, it'll look like this: ![Screenshot from 2022-05-28 17-46-23](https://user-images.githubusercontent.com/3050060/170833333-e1a59c2b-27ca-47da-9c08-2356e4a689cb.png) r? `@notriddle`
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-16/+55
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-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-15/+2
2022-05-26rustdoc: factor orphan impl items into an actual structMichael Howell-5/+7
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-13/+63
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-25Auto merge of #97365 - klensy:rustdoc-vs-clippy, r=notriddlebors-39/+44
rustdoc: fix few clippy lints Fix few clippy lints: second commit - perf ones, first - other ones.
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-24/+21
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-11/+11
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-23Auto merge of #97195 - notriddle:notriddle/cleanup, r=GuillaumeGomezbors-3/+3
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-3/+3
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-4/+1
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-21Shrink GenericArgs/PathSegment with boxed slicesMichael Howell-3/+3
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-11/+11
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-5/+1
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-245/+263