mautamu
8db7973f19
Change librustdoc write(.. \n) to writeln(..); fix comment in grammar
...
More grammar
2021-05-03 02:19:57 -05:00
Guillaume Gomez
34d128a263
Replace under-used ImplPolarity enum with a boolean
2021-01-09 14:59:37 +01:00
Matthias Krüger
a5807ac61c
clippy fixes for librustdoc
...
fixes clippy warnings of type:
match_like_matches_macro
or_fun_call
op_ref
needless_return
let_and_return
single_char_add_str
useless_format
unnecessary_sort_by
match_ref_pats
redundant_field_names
2021-01-01 21:19:10 +01:00
Joshua Nelson
d6c16e4253
Make all rustdoc functions and structs crate-private
...
This gives warnings about dead code.
2020-11-15 11:21:12 -05:00
Alex Aktsipetrov
12785dd89c
Expand and remove try_something macro.
...
Since 2f6226518b
there has been only one invocation.
2020-04-02 19:55:56 +02:00
Matthias Krüger
5566a1cee4
remove redundant returns (clippy::needless_return)
2020-03-21 15:55:34 +01:00
Matthias Krüger
9523c89f18
use is_empty() instead of len() == x to determine if structs are empty.
2020-02-28 15:16:27 +01:00
Matthias Krüger
addd7426be
don't explicitly compare against true or false
2020-02-24 16:52:40 +01:00
Guillaume Gomez
c8e567ddc8
Minify CSS rules to be able to handle minified theme files as well
2020-02-12 15:49:39 +01:00
Mazdak Farrokhzad
8bd3d240e3
nix syntax::errors & prefer rustc_errors over errors
2020-01-10 07:41:30 +01:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Guillaume Gomez
dcccd28e42
Warn instead of failing for themes
2019-11-18 16:43:47 +01:00
Vadim Petrochenkov
a332e224a3
librustdoc: Unconfigure tests during normal build
2019-08-02 01:59:01 +03:00
Guillaume Gomez
640bdbdb1d
Improve theme checker by removing unneeded conditions
2019-06-20 22:59:56 +02:00
Guillaume Gomez
165a95b371
Add test for empty css file check
2019-06-20 22:59:56 +02:00
Guillaume Gomez
cfd754d892
Fix theme-checker failure
2019-06-20 22:59:56 +02:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Andy Russell
2f6226518b
use top level fs functions where appropriate
...
This commit replaces many usages of `File::open` and reading or writing
with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code
complexity, and will improve performance for most reads, since the
functions allocate the buffer to be the size of the file.
I believe that this commit will not impact behavior in any way, so some
matches will check the error kind in case the file was not valid UTF-8.
Some of these cases may not actually care about the error.
2018-12-07 12:54:11 -05:00
bors
23ea1b8188
Auto merge of #53599 - matthiaskrgr:split_str__to__split_char, r=frewsxcv
...
use char pattern for single-character splits: a.split("x") -> a.split('x')
2018-09-02 15:27:56 +00:00
Eduard-Mihai Burtescu
93f3f5b155
Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.
2018-08-28 17:04:04 +03:00
Matthias Krüger
e699076780
use char pattern for single-character splits: a.split("x") -> a.split('x')
2018-08-22 12:56:32 +02:00
QuietMisdreavus
6bc1db0255
replace error/warning println with structured diag
2018-05-14 11:03:22 -05:00
Guillaume Gomez
b1b11d4589
Pass themes folder as parameter
2018-02-08 10:53:09 +01:00
Guillaume Gomez
51580d46f9
Add tests for themes
2018-02-08 10:53:09 +01:00
Guillaume Gomez
63ee1cd846
Improve output a bit in case of error
2018-02-08 10:53:09 +01:00
Guillaume Gomez
583b29f85c
Handle comments in css selector and add tests
2018-02-08 10:53:09 +01:00
Guillaume Gomez
b44b033bf1
get differences
2018-02-08 10:53:09 +01:00
Guillaume Gomez
94ad4e1d38
Add theme tests
2018-02-08 10:53:09 +01:00