Andy Russell
8fc6e420d1
use span instead of div for since version
2019-05-03 12:55:31 -04:00
Manish Goregaokar
7aab005341
Revert "Update Source Code Pro fonts to version 2.030"
...
This reverts commit 6bafc58ced
.
2019-04-29 14:15:28 -07:00
Dmitry Murzin
d2b4f4d452
Make "Implementations on Foreign Types" items in sidebar link to specific impls
2019-04-26 22:39:00 +03:00
bors
e8310a7714
Auto merge of #60167 - varkor:tidy-filelength, r=matthewjasper
...
Add a tidy check for files with over 3,000 lines
Files with a large number of lines can cause issues in GitHub (e.g. https://github.com/rust-lang/rust/issues/60015 ) and also tend to be indicative of opportunities to refactor into less monolithic structures.
This adds a new check to tidy to warn against files that have more than 3,000 lines, as suggested in https://github.com/rust-lang/rust/issues/60015#issuecomment-483868594 . (This number was chosen fairly arbitrarily as a reasonable indicator of size.) This check can be ignored with `// ignore-tidy-filelength`.
Existing files with greater than 3,000 lines currently ignore the check, but this helps us spot when files are getting too large. (We might try to split up all files larger than this in the future, as in https://github.com/rust-lang/rust/issues/60015 ).
2019-04-26 04:42:10 +00:00
Mazdak Farrokhzad
878a7d6ea5
Rollup merge of #60134 - GuillaumeGomez:fix-index-page, r=Manishearth
...
Fix index-page generation
Fixes #60096 .
The minifier was minifying crates name in `searchIndex` key position, which was a bit problematic for multiple reasons.
r? @rust-lang/rustdoc
2019-04-26 03:50:14 +02:00
Mazdak Farrokhzad
294e89d5fa
Rollup merge of #59734 - GuillaumeGomez:improve-rustdoc-failure, r=ollie27
...
Prevent failure in case no space left on device in rustdoc
Fixes #59703 .
r? @QuietMisdreavus
2019-04-26 03:50:11 +02:00
varkor
aa388f1d11
ignore-tidy-filelength on all files with greater than 3000 lines
2019-04-25 21:39:09 +01:00
Guillaume Gomez
6aa5a5df96
Improvement comment explanations
2019-04-25 13:20:43 +02:00
Guillaume Gomez
f199627e69
Remove useless code and update index page test
2019-04-24 23:45:18 +02:00
Guillaume Gomez
feb5a53266
Prevent failure in case no space left on device in rustdoc
2019-04-24 22:31:30 +02:00
Guillaume Gomez
d676386b1e
Fix index-page generation
2019-04-23 22:44:27 +02:00
Manish Goregaokar
6bafc58ced
Update Source Code Pro fonts to version 2.030
...
Pulled in from https://github.com/adobe-fonts/source-code-pro/
2019-04-20 20:50:33 -07:00
Manish Goregaokar
e14819ac03
Update Source Serif Pro fonts to version 2.010
...
Pulled in from https://github.com/adobe-fonts/source-serif-pro/
See https://bugzilla.mozilla.org/show_bug.cgi?id=1545317
2019-04-20 20:50:33 -07:00
QuietMisdreavus
1c0e1c10d5
use --static-root-path for settings.js
2019-04-15 11:20:08 -05:00
bors
ee621f4232
Auto merge of #59950 - Centril:rollup-hpmr62i, r=Centril
...
Rollup of 6 pull requests
Successful merges:
- #59776 (Apply resource-suffix to search-index and source-files scripts as well)
- #59784 (Suggest importing macros from the crate root)
- #59812 (Exclude profiler-generated symbols from MSVC __imp_-symbol workaround.)
- #59874 (Clean up handling of `-Z pgo-gen` commandline option.)
- #59890 (Don't generate empty json variables)
- #59911 (Revert "compile crates under test w/ -Zemit-stack-sizes")
Failed merges:
r? @ghost
2019-04-14 01:10:57 +00:00
Mazdak Farrokhzad
426ab8e018
Rollup merge of #59890 - GuillaumeGomez:empty-json-variables, r=QuietMisdreavus
...
Don't generate empty json variables
r? @rust-lang/rustdoc
2019-04-14 00:39:48 +02:00
Mazdak Farrokhzad
ae0bf84a14
Rollup merge of #59776 - GuillaumeGomez:apply-resource-suffix, r=QuietMisdreavus
...
Apply resource-suffix to search-index and source-files scripts as well
Fixes #59771 .
r? @QuietMisdreavus
2019-04-14 00:39:41 +02:00
Mazdak Farrokhzad
8af5c8f4cb
Rollup merge of #59855 - GuillaumeGomez:fix-attr-position-in-type-decl, r=QuietMisdreavus
...
Fix attributes position in type declaration
Fixes #59797 .
r? @rust-lang/rustdoc
2019-04-14 00:23:42 +02:00
Guillaume Gomez
4f28431e39
Apply resource-suffix to search-index and source-files scripts as well
2019-04-12 19:30:37 +02:00
Guillaume Gomez
796e6e37d6
Don't generate empty json variables
2019-04-12 19:17:46 +02:00
Guillaume Gomez
825a11ea3b
Fix attributes position in type declaration
2019-04-10 22:31:42 +02:00
Mazdak Farrokhzad
e655b91b7a
Rollup merge of #59452 - GuillaumeGomez:speedup-rustdoc, r=QuietMisdreavus
...
Speed up rustdoc run a bit
r? @QuietMisdreavus
2019-04-02 13:47:25 +02:00
Fabian Drinck
fef3f5c88d
Remove redundant import
2019-03-30 22:37:02 +01:00
Mazdak Farrokhzad
d050a157a8
Rollup merge of #59376 - davidtwco:finally-rfc-2008-variants, r=petrochenkov,QuietMisdreavus
...
RFC 2008: Enum Variants
Part of #44109 . See [Zulip topic](132663140
) for previous discussion.
r? @petrochenkov
cc @nikomatsakis
2019-03-30 07:51:34 +01:00
David Wood
49a6da2cda
Support non-exhaustive enum variants in rustdoc.
...
This commit adds support for non-exhaustive enum variants in rustdoc,
extending the existing support for non-exhaustive enums and structs.
2019-03-29 11:03:35 +01:00
Guillaume Gomez
7f2c726d6c
Speed up rustdoc run a bit
2019-03-27 19:07:48 +01:00
Guillaume Gomez
f131f042c2
Rollup merge of #59004 - GuillaumeGomez:generics-handling, r=QuietMisdreavus
...
[rustdoc] Improve "in parameters" search and search more generally
Fixes #58230 .
r? @QuietMisdreavus
2019-03-26 22:26:36 +01:00
bors
d91b32b4dc
Auto merge of #59256 - petrochenkov:derval2, r=Zoxc
...
Make meta-item API compatible with `LocalInternedString::get` soundness fix
r? @Zoxc
2019-03-25 12:21:46 +00:00
Guillaume Gomez
dc628b4f67
cleanup
2019-03-23 14:43:27 +01:00
Mazdak Farrokhzad
4c79967760
Rollup merge of #59170 - varkor:const-generics-rustdoc, r=QuietMisdreavus,eddyb
...
Add const generics to rustdoc
Split out from #53645 . This work is a collaborative effort with @yodaldevoid.
The `FIXME`s are waiting on a refactor to `LazyConst`. I'll address these in a follow up, but I thought it would be better to implement the rest now to avoid bitrot.
r? @QuietMisdreavus
2019-03-22 19:31:18 +01:00
Guillaume Gomez
6bce61cd4b
Fix invalid returned types generation
2019-03-21 22:49:43 +01:00
Guillaume Gomez
aefe75095a
Add bounds for return types as well
2019-03-21 22:49:43 +01:00
Guillaume Gomez
6ae73e2ff6
Improve bounds search
2019-03-21 22:49:43 +01:00
Guillaume Gomez
64382f4b78
Greatly improve generics handling in rustdoc search
2019-03-21 22:49:42 +01:00
bors
48e354d224
Auto merge of #58927 - GuillaumeGomez:default-keyword, r=QuietMisdreavus
...
Add default keyword handling in rustdoc
Fixes #58898 .
r? @QuietMisdreavus
2019-03-21 08:55:50 +00:00
varkor
c915fe0245
Rename external_typarams to external_param_names
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-03-18 19:38:23 +00:00
varkor
ec6f983e24
Rename typarams to param_names
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-03-18 19:38:23 +00:00
Vadim Petrochenkov
db74efce69
Make meta-item API compatible with LocalInternedString::get
soundness fix
2019-03-17 17:04:58 +03:00
Vadim Petrochenkov
63116d313d
Rename MetaItem::ident
to MetaItem::path
2019-03-16 23:13:15 +03:00
Vadim Petrochenkov
8371caf5ee
syntax: Do not accidentally treat multi-segment meta-items as single-segment
2019-03-16 23:13:15 +03:00
Guillaume Gomez
541ad45a83
Add default keyword handling in rustdoc
2019-03-14 13:18:36 +01:00
Manish Goregaokar
c37dab7df8
Revert "Don't generate minification variable if minification disabled"
...
Fixes #59157
This reverts commit b5ae4d5888
.
2019-03-13 07:39:29 -07:00
Mazdak Farrokhzad
69cb908849
Rollup merge of #58643 - GuillaumeGomez:extra-variables, r=Manishearth
...
Don't generate minification variables if minification disabled
If the minification is disabled, there is no sense having those variables.
r? @QuietMisdreavus
2019-02-23 09:25:33 +01:00
Hirokazu Hata
1fe87df104
Fix tidy check errors
2019-02-23 17:02:57 +09:00
Hirokazu Hata
1932d7a52d
Transition librustdoc to 2018 edition
2019-02-23 16:40:07 +09:00
Guillaume Gomez
b5ae4d5888
Don't generate minification variable if minification disabled
2019-02-22 13:50:17 +01:00
kennytm
8d1e4323b3
Rollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavus
...
rustdoc: respect alternate flag when formatting impl trait
Fixes #58226 .
Before:
<img width="963" alt="screen shot 2019-02-12 at 3 23 30 pm" src="https://user-images.githubusercontent.com/1372438/52665732-4496ea00-2eda-11e9-9e29-efffe43b2abf.png ">
After:
<img width="964" alt="screen shot 2019-02-12 at 3 23 51 pm" src="https://user-images.githubusercontent.com/1372438/52665733-452f8080-2eda-11e9-999a-dd1fb28dee16.png ">
2019-02-20 11:58:31 +08:00
kennytm
120e9cb70f
Rollup merge of #58303 - GuillaumeGomez:stability-tags-display, r=QuietMisdreavus
...
Improve stability tags display
The issue was the font color on dark theme. Fixed now:
<img width="352" alt="screenshot 2019-02-08 at 14 15 24" src="https://user-images.githubusercontent.com/3050060/52483276-bd810380-2bb3-11e9-8d46-95368569ac85.png ">
r? @QuietMisdreavus
2019-02-20 11:58:11 +08:00
bors
32471f7ea4
Auto merge of #58503 - varkor:const-generics-hir, r=petrochenkov
...
Add const generics to the HIR
Split out from https://github.com/rust-lang/rust/pull/53645 .
cc @yodaldevoid
r? @eddyb
2019-02-19 00:46:12 +00:00
kennytm
f8ccdeb0d4
Rollup merge of #57929 - GuillaumeGomez:rustodc-remove-old-style-files, r=ollie27
...
Rustdoc remove old style files
Reopening of #56577 (which I can't seem to reopen...).
I made the flag unstable so with this change, what was blocking the PR is now gone I assume.
2019-02-17 14:52:21 +08:00