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
Guillaume Gomez
2c9f1f5750
Rollup merge of #58143 - GuillaumeGomez:sort-elements-in-sidebar, r=QuietMisdreavus
...
Sort elements in the sidebar
Fixes #57448 .
Not sorting fields or variants though.
r? @QuietMisdreavus
2019-02-07 14:28:37 +01:00
Guillaume Gomez
f61a4f86db
Rollup merge of #58033 - euclio:rustdoc-tags, r=QuietMisdreavus
...
rustdoc: wrap stability tags in colored spans
A cosmetic change to make the stability tags stand out a bit against the docs. Opening for discussion.
Before:


After:


r? @QuietMisdreavus
2019-02-07 14:28:34 +01:00
Guillaume Gomez
1a99a32bd7
Rollup merge of #58028 - GuillaumeGomez:fix-settings-image-link, r=QuietMisdreavus
...
Fix image link in the settings menu
Fixes #57892 .
r? @QuietMisdreavus
2019-02-07 14:28:33 +01:00
Guillaume Gomez
bb9d66d3ba
Rollup merge of #57954 - euclio:rustdoc-stability, r=QuietMisdreavus
...
rustdoc: remove blank unstable spans
Rustdoc generates blank unstable spans for unstable struct fields: 
This PR removes them:

r? @QuietMisdreavus
2019-02-07 14:28:32 +01:00
Andy Russell
4deb5959a3
display sugared return types for async functions
2019-02-06 09:24:03 -05:00
Guillaume Gomez
c40fa3271a
sort elements in the sidebar
2019-02-04 12:38:26 +01:00
Guillaume Gomez
5cf20ca3c5
Fix image link in the settings menu
2019-02-01 11:27:59 +01:00
Guillaume Gomez
397eb4f237
Add missing generation for test and proc_macro, remove old macro redirection
2019-01-31 23:11:14 +01:00
Andy Russell
ea2b1b035b
rustdoc: wrap stability tags in colored spans
2019-01-31 15:15:59 -05:00
Andy Russell
30b1c35f03
rustdoc: remove blank unstable spans
2019-01-28 13:04:05 -05:00
Guillaume Gomez
270151bffb
Add generate-old-style-files option to rustdoc
2019-01-27 12:46:18 +01:00
Guillaume Gomez
1ac727772b
Remove rustdoc old style files generation
2019-01-27 00:34:05 +01:00
Guillaume Gomez
f97856350c
Update minifier version
2019-01-25 00:07:08 +01:00
Mazdak Farrokhzad
e3d3cff019
Rollup merge of #57552 - GuillaumeGomez:default-images, r=QuietMisdreavus
...
Default images
Add default rust logo (the image at the top of the sidebar) and default favicon. No more missing image or inexistent icon on the documentation tabs!
r? @QuietMisdreavus
2019-01-22 12:20:27 +01:00
Guillaume Gomez
b5d167f58a
Add default favicon for documentation
2019-01-20 21:47:43 +01:00
Guillaume Gomez
2200fd3c7c
Add default rust logo for documentation
2019-01-20 18:53:56 +01:00
Mazdak Farrokhzad
c0ad9429ab
Rollup merge of #57476 - Xanewok:bye-crate-analysis, r=Zoxc
...
Move glob map use to query and get rid of CrateAnalysis
~Also includes commits from ~https://github.com/rust-lang/rust/pull/57392~ and ~https://github.com/rust-lang/rust/pull/57436~.~
With glob map calculated unconditionally in https://github.com/rust-lang/rust/pull/57392 , this PR moves the calculated glob map to `GlobalCtxt` and exposes a relevant query (as we do with other queries which copy precomputed data over from the `Resolver`).
This allows us to get rid of the `CrateAnalysis` struct in an attempt to simplify the compiler interface.
cc @Zoxc
r? @nikomatsakis @Zoxc @petrochenkov
2019-01-19 09:03:24 +01:00