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
varkor
475f20c73d
Add Const kind to rustdoc
...
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-15 22:28:49 +00:00
Mazdak Farrokhzad
193c3773c2
Rollup merge of #58202 - varkor:deprecated-future-external, r=GuillaumeGomez
...
Ignore future deprecations in #[deprecated]
The future deprecation warnings should only apply to `#[rustc_deprecated]` as they take into account rustc's version. Fixes #57952 .
I've also slightly modified rustdoc's display of future deprecation notices to make it more consistent, so I'm assigning a rustdoc team member for review to make sure this is okay.
r? @GuillaumeGomez
2019-02-13 18:12:30 +01:00
bors
b244f61b77
Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik
...
Cosmetic improvements to doc comments
This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase).
r? @steveklabnik
Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-12 19:09:24 +00:00
Andy Russell
e827c9ab3c
respect alternate flag when formatting impl trait
2019-02-12 13:45:36 -05:00
varkor
3dc660f1f5
Update existing rustdoc test
2019-02-11 11:17:35 +00:00
varkor
2a8a25be37
Display "Deprecation planned" in rustdoc for future rustc deprecations
2019-02-11 11:17:35 +00:00
varkor
87cd09b94c
Don't display "Deprecated since" for non-rustc deprecated items
2019-02-11 11:17:35 +00:00
Alexander Regueiro
c3e182cf43
rustc: doc comments
2019-02-10 23:42:32 +00:00
Guillaume Gomez
adf516b94e
Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=Manishearth
...
Add trait alias support in rustdoc
Fixes #57595 .
r? @QuietMisdreavus
2019-02-10 21:45:13 +01:00
Guillaume Gomez
cdbd07cc40
Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomez
...
rustdoc: display sugared return types for async functions
Fixes #58027 .
2019-02-10 21:45:12 +01:00
Guillaume Gomez
b1d82ac6ed
Remove spotlight for trait aliases and fix nits
2019-02-10 16:56:21 +01:00
Guillaume Gomez
74e97f3381
Add trait alias support in rustdoc
2019-02-10 14:49:20 +01:00
Guillaume Gomez
d26475505b
put back macro redirect
2019-02-09 14:29:03 +01:00
Guillaume Gomez
9fa01da50e
Improve stability tags display
2019-02-08 15:09:05 +01:00