bors
855fc022fe
Auto merge of #97489 - GuillaumeGomez:settings-js-disabled, r=notriddle
...
Add sentence in case JS is disabled on settings.html page
Instead of having an empty page, it'll look like this:

r? `@notriddle`
2022-05-30 04:15:10 +00:00
Michael Goulet
8e01595d9b
Rollup merge of #97530 - GuillaumeGomez:more-eslint-checks, r=jsha
...
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-29 16:25:04 -07:00
Guillaume Gomez
f1a95b834c
Add "no-ex-assign" eslint rule
2022-05-29 21:44:10 +02:00
Guillaume Gomez
d39703a6c5
Add "no-duplicate-case" eslint rule
2022-05-29 21:43:37 +02:00
Guillaume Gomez
88c3d707a6
Add "no-dupe-keys" eslint rule
2022-05-29 21:42:26 +02:00
Guillaume Gomez
397ad826b0
Add "no-dupe-else-if" eslint rule
2022-05-29 21:42:24 +02:00
Guillaume Gomez
9f79a03ca5
Add "no-dup-args" eslint rule
2022-05-29 21:40:16 +02:00
Guillaume Gomez
4bb728da79
Add "no-debugger" eslint rule
2022-05-29 21:39:44 +02:00
Guillaume Gomez
6b4191f5e0
Add "no-const-assign" eslint rule
2022-05-29 21:38:52 +02:00
Jan-Erik Rediger
9f68b998db
Fix order of closing HTML elements in rustdoc output
2022-05-29 15:22:25 +02:00
bors
0acc4a3585
Auto merge of #96652 - notriddle:notriddle/self, r=GuillaumeGomez
...
rustdoc: include impl generics / self in search index
Fixes #92205
2022-05-29 03:15:28 +00:00
Guillaume Gomez
e297bbf4c7
Improve settings page display with disabled javascript
2022-05-28 17:54:47 +02:00
bors
764b8615e9
Auto merge of #97433 - GuillaumeGomez:rm-refcell-context, r=notriddle
...
Pass Context as a &mut to allow to remove RefCell fields
Fixes #90323 .
r? `@notriddle`
2022-05-28 01:37:09 +00:00
Guillaume Gomez
334f12c28e
Add "eqeqeq" eslint rule
2022-05-27 22:30:19 +02:00
Guillaume Gomez
3741a88ad7
Add "no-unused-vars" eslint rule
2022-05-27 22:22:22 +02:00
Guillaume Gomez
b7d6a429b5
Add "arrow-parens" eslint rule
2022-05-27 22:21:41 +02:00
Guillaume Gomez
6ab8edb931
Pass Context as a &mut to allow to remove RefCell fields
2022-05-27 22:16:24 +02:00
Michael Howell
718269aab8
cleanup librustdoc by making parent stack store items
2022-05-27 12:55:44 -07:00
Michael Howell
767719cc30
rustdoc: factor orphan impl items into an actual struct
2022-05-26 14:40:48 -07:00
Guillaume Gomez
d932610bab
Rollup merge of #97394 - GuillaumeGomez:more-eslint-rules, r=notriddle
...
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-26 00:32:11 +02:00
Guillaume Gomez
02b630f566
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
...
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-26 00:32:09 +02:00
Michael Howell
b9ed8784b3
rustdoc: include impl generics / self in search index
2022-05-25 11:01:43 -07:00
Guillaume Gomez
bb29d5d6e0
Add new eslint rule "eol-last"
2022-05-25 13:58:42 +02:00
Guillaume Gomez
36d3c7e3c6
Add new eslint rule "max-len"
2022-05-25 13:58:14 +02:00
Guillaume Gomez
33245e0bb3
Add new eslint rule "comma-style"
2022-05-25 13:57:08 +02:00
Guillaume Gomez
4dbc6764cf
Add new eslint rule "comma-dangle"
2022-05-25 13:56:27 +02:00
Guillaume Gomez
c5e3954887
Add new eslint rule "space-before-blocks"
2022-05-25 13:55:54 +02:00
Guillaume Gomez
6c7156d488
Add new eslint rule "space-before-function-paren"
2022-05-25 13:55:09 +02:00
Guillaume Gomez
231b47b2b9
Add eslint rule "space-infix-ops"
2022-05-25 13:53:19 +02:00
bors
6ac8adad1f
Auto merge of #97365 - klensy:rustdoc-vs-clippy, r=notriddle
...
rustdoc: fix few clippy lints
Fix few clippy lints: second commit - perf ones, first - other ones.
2022-05-25 01:12:54 +00:00
Yuki Okushi
b66cf9f280
Rollup merge of #97355 - GuillaumeGomez:remove-brush, r=Dylan-DPC
...
Remove unused brush image
r? `@notriddle`
2022-05-25 07:08:43 +09:00
klensy
2a326bcc74
fix clippy perf lints
2022-05-24 13:35:54 -04:00
klensy
678059f7d0
fix simple clippy lints
2022-05-24 12:24:41 -04:00
Guillaume Gomez
6920361959
Remove unused brush image
2022-05-24 15:55:01 +02:00
Guillaume Gomez
1ebf0d9c72
Allow to click on toggle text to update it
2022-05-24 15:40:50 +02:00
bors
222c5724ec
Auto merge of #94053 - GuillaumeGomez:fields-stripped, r=notriddle
...
rustdoc: Remove fields_stripped fields (and equivalents)
Fixes #90588 .
r? `@camelid`
2022-05-23 18:26:42 +00:00
Dylan DPC
215722bd8d
Rollup merge of #97286 - GuillaumeGomez:eslint-check-fn, r=notriddle
...
Add new eslint rule to prevent whitespace before function call paren
It prevents `foo ()` basically. :)
r? `@notriddle`
2022-05-23 15:11:03 +02:00
bors
32c8c5df06
Auto merge of #97195 - notriddle:notriddle/cleanup, r=GuillaumeGomez
...
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-23 10:46:50 +00:00
Michael Howell
207f64948f
Clean up &args[..], use more readable args.iter() instead
2022-05-22 15:03:51 -07:00
Guillaume Gomez
399299fba2
Add new eslint rule to prevent whitespace before function call paren
2022-05-22 22:29:44 +02:00
bors
acfd327fd4
Auto merge of #97177 - oli-obk:const-stability, r=davidtwco
...
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-22 06:47:36 +00:00
Michael Howell
08237d8a6d
Shrink GenericArgs/PathSegment with boxed slices
2022-05-21 07:55:13 -07:00
bors
3b9cf893d0
Auto merge of #97246 - GuillaumeGomez:rollup-btcok8x, r=GuillaumeGomez
...
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-21 11:28:48 +00:00
Guillaume Gomez
6092cbb17c
Remove fields_stripped fields (and equivalents)
2022-05-21 13:21:12 +02:00
Guillaume Gomez
e5c7b21f39
Rollup merge of #97218 - GuillaumeGomez:eslint-checks, r=notriddle
...
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-21 11:39:49 +02:00
bors
5f33adce1b
Auto merge of #93963 - GuillaumeGomez:reduce-clean-type-size, r=notriddle
...
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? 😉
It was discussed in https://github.com/rust-lang/rust/pull/93941 .
r? `@camelid`
2022-05-21 09:04:05 +00:00
Jacob Pratt
6970246886
Remove crate visibility modifier in libs, tests
2022-05-21 00:32:47 -04:00
Guillaume Gomez
116c5a25e7
Add eslint key-spacing check
2022-05-20 20:27:35 +02:00
Guillaume Gomez
b036fd378b
Add eslint arrow-spacing check
2022-05-20 20:27:34 +02:00
Guillaume Gomez
8fe333abd0
Add new lint to enforce whitespace after keywords
2022-05-19 17:19:22 +02:00