Marcel Hellwig
6e741df1bd
moved colors of kbd tag into main.css
2017-12-22 13:29:02 +01:00
Marcel Hellwig
176624fb4b
add kbd style tag to main.css in rustdoc
2017-12-22 06:42:11 +01:00
bors
ba2741594b
Auto merge of #46922 - kennytm:rollup, r=kennytm
...
Rollup of 14 pull requests
- Successful merges: #46636 , #46780 , #46784 , #46809 , #46814 , #46820 , #46839 , #46847 , #46858 , #46878 , #46884 , #46890 , #46898 , #46918
- Failed merges:
2017-12-21 23:01:27 +00:00
bors
250b492052
Auto merge of #45930 - jplatte:generics_refactoring, r=eddyb
...
Generics refactoring (groundwork for const generics)
These changes were suggested by @eddyb.
After this change, the `Generics` contain one `Vec` of an enum for the generic parameters, rather than two separate `Vec`s for lifetime and type parameters. Type params and const params will need to be in a shared `Vec` to preserve their ordering, and moving lifetimes into the same `Vec` should simplify the code that processes `Generics`.
2017-12-21 20:12:13 +00:00
kennytm
256bf2be62
Rollup merge of #46847 - GuillaumeGomez:more-sidebar-escape, r=QuietMisdreavus
...
Escape more items in the sidebar when needed
Fixes #46724 .
r? @QuietMisdreavus
2017-12-22 02:50:52 +08:00
kennytm
0ee069c70a
Rollup merge of #46814 - varkor:contrib-7, r=alexcrichton
...
Prevent rustc overwriting input files
If rustc is invoked on a file that would be overwritten by the
compilation, the compilation now fails, to avoid accidental loss. This
resolves #13019 . Kudos to @estebank, whose patch I finished off.
2017-12-22 02:50:49 +08:00
kennytm
71c6d23612
Rollup merge of #46636 - frewsxcv:frewsxcv-fn-box, r=estebank
...
Replace libtest/lib.rs:FnBox with std::boxed::FnBox.
Fixes https://github.com/rust-lang/rust/issues/41810 .
2017-12-22 02:50:45 +08:00
John Kåre Alsaker
d81cd38e30
Combine GlobalArenas and DroplessArena into AllArenas
2017-12-21 19:21:39 +01:00
Jonas Platte
78493ed21a
Add GenericParam, refactor Generics in ast, hir, rustdoc
...
The Generics now contain one Vec of an enum for the generic parameters,
rather than two separate Vec's for lifetime and type parameters.
Additionally, places that previously used Vec<LifetimeDef> now use
Vec<GenericParam> instead.
2017-12-21 13:38:10 +01:00
Guillaume Gomez
1219494f6f
Rollup merge of #46861 - GuillaumeGomez:fix-ios-sidebar, r=QuietMisdreavus
...
Fix sidebar on ios
r? @QuietMisdreavus
2017-12-21 13:18:21 +01:00
Guillaume Gomez
d4424d84fb
Escape more items in the sidebar when needed
2017-12-21 13:17:15 +01:00
bors
ab7abfcf34
Auto merge of #46754 - cramertj:refactor-arg-impl, r=nikomatsakis
...
Refactor argument-position impl Trait
Fixes https://github.com/rust-lang/rust/issues/46685 , https://github.com/rust-lang/rust/issues/46470
r? @nikomatsakis
cc @chrisvittal
2017-12-21 08:04:57 +00:00
Wilco Kusee
d5b1119b16
Const-eval TyArray trait implementors
2017-12-20 23:13:15 +01:00
kennytm
cc3f4357d3
Rollup merge of #46787 - varkor:contrib-6, r=QuietMisdreavus
...
Add an option to allow rustdoc to list modules by appearance
The `--sort-modules-by-appearance` option will list modules in the
order that they appear in the source, rather than sorting them
alphabetically (as is the default). This resolves #8552 .
2017-12-20 21:21:56 +08:00
bors
588f7db8ef
Auto merge of #46733 - nikomatsakis:nll-master-to-rust-master-5, r=arielb1
...
nll part 5
Next round of changes from the nll-master branch.
Extensions:
- we now propagate ty-region-outlives constraints out of closures and into their creator when necessary
- we fix a few ICEs that can occur by doing liveness analysis (and the resulting normalization) during type-checking
- we handle the implicit region bound that assumes that each type `T` outlives the fn body
- we handle normalization of inputs/outputs in fn signatures
Not included in this PR (will come next):
- handling `impl Trait`
- tracking causal information
- extended errors
r? @arielb1
2017-12-20 03:58:15 +00:00
Guillaume Gomez
7f5c2f9249
Fix sidebar on ios
2017-12-20 01:53:18 +01:00
varkor
b59fbfdbe1
Move source-output conflict checking into compile_input
2017-12-19 01:54:00 +00:00
Guillaume Gomez
b5f6884aeb
Rollup merge of #46825 - GuillaumeGomez:mobile-search, r=QuietMisdreavus
...
Improve search display on mobile
r? @QuietMisdreavus
2017-12-18 23:08:41 +01:00
Guillaume Gomez
25e5af8a27
Rollup merge of #46824 - GuillaumeGomez:doc-sidebar, r=QuietMisdreavus
...
Fix dynamic crates listing in doc sidebar
Fixes #46687 .
r? @QuietMisdreavus
2017-12-18 23:08:40 +01:00
Guillaume Gomez
723190752b
Rollup merge of #46786 - GuillaumeGomez:fix-sized-rendering, r=QuietMisdreavus
...
Fix ?Sized where bound not being displayed at the correct place
Fixes #46726 .
r? @QuietMisdreavus
2017-12-18 23:08:31 +01:00
Guillaume Gomez
9ab2227db1
Rollup merge of #46700 - GuillaumeGomez:more-relevant-doc-search, r=QuietMisdreavus
...
make doc search more relevant
Fixes #46595 .
r? @QuietMisdreavus
If possible, I'd appreciate a strong check on this PR. :3
2017-12-18 23:08:30 +01:00
Guillaume Gomez
3d4c505078
Improve search display on mobile
2017-12-18 22:30:53 +01:00
Guillaume Gomez
cf18b1f22a
Fix dynamic crates listing in doc sidebar
2017-12-18 21:15:46 +01:00
varkor
c0ff8144c4
Fix tidy issue
2017-12-18 19:52:45 +00:00
Guillaume Gomez
0df39bfff7
Fix ?Sized where bound not being displayed at the correct place
2017-12-18 10:44:26 +01:00
varkor
7104e8f7b4
Add an option to allow rustdoc to list modules by appearance
...
The `--sort-modules-by-appearance` option will list modules in the
order that they appear in the source, rather than sorting them
alphabetically (as is the default). This resolves #8552 .
2017-12-17 15:22:50 +00:00
Vadim Petrochenkov
a4aa26aaa0
syntax: Rename P::unwrap into P::into_inner
2017-12-17 02:21:29 +03:00
Taylor Cramer
e502194e7e
Refactor argument-position impl Trait
2017-12-15 13:29:05 -08:00
Niko Matsakis
3a5842afe1
add a new RegionKind variant: ReClosureBound
...
This is needed to allow the `ClosureRegionRequirements` to capture
types that include regions.
2017-12-15 10:27:52 -05:00
Guillaume Gomez
97c18f420e
Improve results a bit
2017-12-15 15:42:38 +01:00
Corey Farwell
4f04f975ae
Replace libtest/lib.rs:FnBox with std::boxed::FnBox.
...
Fixes https://github.com/rust-lang/rust/issues/41810 .
2017-12-15 09:11:14 -05:00
Guillaume Gomez
6351ebb7e5
make doc search more relevant
2017-12-15 14:44:49 +01:00
Alex Burka
1b6ad1e647
stub out trait aliases in librustdoc
2017-12-14 12:56:26 -05:00
Oliver Schneider
d732da813b
Use PathBuf instead of String where applicable
2017-12-14 11:22:08 +01:00
bors
61100840e5
Auto merge of #46419 - jseyfried:all_imports_in_metadata, r=nrc
...
Record all imports (`use`, `extern crate`) in the crate metadata
This PR adds non-`pub` `use` and `extern crate` imports in the crate metadata since hygienic macros invoked in other crates may use them. We already include all other non-`pub` items in the crate metadata. This improves import suggestions in some cases.
Fixes #42337 .
r? @nrc
2017-12-13 08:32:25 +00:00
kennytm
6a365417c0
Rollup merge of #46672 - GuillaumeGomez:fix-type-filter-search, r=QuietMisdreavus
...
Fix type filter in rustdoc js
Fixes #46612 .
r? @QuietMisdreavus
2017-12-13 04:28:06 +08:00
kennytm
c6ce7dae23
Rollup merge of #46668 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavus
...
Fix mobile doc style and improve search bar
Fixes #46593 .
r? @QuietMisdreavus
2017-12-13 04:28:05 +08:00
Guillaume Gomez
557236c508
Fix type filter in rustdoc js
2017-12-12 00:19:36 +01:00
Guillaume Gomez
a06c6bd63c
Fix mobile doc style and improve search bar
2017-12-11 22:30:04 +01:00
bors
2d4df9584b
Auto merge of #46232 - canndrew:never-docs, r=QuietMisdreavus
...
Add docs for never primitive
cc @nikomatsakis, @QuietMisdreavus
2017-12-10 19:04:25 +00:00
bors
c89e206eed
Auto merge of #46602 - mbrubeck:try, r=kennytm
...
Replace option_try macros and match with ? operator
None
2017-12-10 00:57:40 +00:00
Matt Brubeck
3024c1434a
Use Try syntax for Option in place of macros or match
2017-12-09 14:18:33 -08:00
Oliver Middleton
e53a848d32
rustdoc: Include impl [u8] in the docs
2017-12-09 17:06:02 +00:00
bors
61cc23e3e5
Auto merge of #46586 - GuillaumeGomez:fix-mobile-important-display, r=QuietMisdreavus
...
Fixes doc important trait display on mobile
Fixes #46527 .
r? @QuietMisdreavus
2017-12-09 03:57:47 +00:00
Guillaume Gomez
0017d504a5
Fixes doc important trait display on mobile
2017-12-08 16:36:08 +01:00
bors
ab79caa828
Auto merge of #46247 - GuillaumeGomez:md-warnings, r=QuietMisdreqvus
...
Md warnings
Fixes #45365 .
r? @QuietMisdreavus
2017-12-08 14:10:07 +00:00
Guillaume Gomez
1b7ea6d2d4
Rollup merge of #46526 - GuillaumeGomez:mobile-sidebar, r=QuietMisdreavus
...
Greatly improve sidebar when width < 700px
Fixes #36531 .
r? @QuietMisdreavus
A few screenshots:
<img width="1440" alt="screen shot 2017-12-06 at 00 41 36" src="https://user-images.githubusercontent.com/3050060/33636875-6ad8b1a6-da1e-11e7-8d5b-d6d530ea5258.png ">
<img width="1440" alt="screen shot 2017-12-06 at 00 41 40" src="https://user-images.githubusercontent.com/3050060/33636876-6af58196-da1e-11e7-82ab-b82768958037.png ">
2017-12-07 23:59:02 +01:00
Guillaume Gomez
14f2bc0405
Rollup merge of #46444 - GuillaumeGomez:css-cleanup, r=QuietMisdreavus
...
Move colors to main.css
r? @QuietMisdreavus
2017-12-07 23:59:01 +01:00
Guillaume Gomez
eb84f4243f
fix markdown file differences
2017-12-07 23:56:21 +01:00
Guillaume Gomez
8b1fc4b842
Generate difference warnings for markdown files as well
2017-12-07 23:31:23 +01:00