Corey Farwell
c3bc905e5f
Remove redundant 'Type' in variant names, stop reexporting.
2016-10-02 21:58:18 -04:00
bors
ab38d52df7
Auto merge of #36885 - Manishearth:rollup, r=Manishearth
...
Rollup of 6 pull requests
- Successful merges: #36865 , #36872 , #36873 , #36877 , #36880 , #36882
- Failed merges:
2016-10-01 10:17:20 -07:00
Manish Goregaokar
259d1fcd47
Rollup merge of #36599 - jonas-schievink:whats-a-pirates-favorite-data-structure, r=pnkfelix
...
Contains a syntax-[breaking-change] as a separate commit (cc #31645 ).nnAlso renames slice patterns from `PatKind::Vec` to `PatKind::Slice`.
2016-10-01 19:22:12 +05:30
Manish Goregaokar
2e5837a102
Rollup merge of #36872 - frewsxcv:rustdoc, r=GuillaumeGomez
...
A couple refactorings in librustdoc.
None
2016-10-01 16:38:32 +05:30
Brian Anderson
a4c3288129
Change the sigs of set_print/set_panic to allow restoring the default objects
2016-09-30 14:02:53 -07:00
Corey Farwell
7732e621f4
Simplify logic around Context's root_path.
...
Was previously cached and maintained in the `Context`, which to me seems
overkill.
2016-09-30 15:54:53 -04:00
Corey Farwell
c66c4533d1
Migrate Item ➡ ItemType function to method.
2016-09-30 15:54:53 -04:00
Jonas Schievink
cf0b7bdd0c
Call arrays "arrays" instead of "vecs" internally
2016-09-28 22:30:30 +02:00
bors
ec7679b460
Auto merge of #36764 - jonathandturner:rollup, r=jonathandturner
...
Rollup of 14 pull requests
- Successful merges: #36563 , #36574 , #36586 , #36662 , #36663 , #36669 , #36676 , #36721 , #36723 , #36727 , #36729 , #36742 , #36754 , #36756
- Failed merges:
2016-09-26 23:30:19 -07:00
Jonathan Turner
ee2e115995
Rollup merge of #36729 - frewsxcv:rustdoc, r=alexcrichton
...
librustdoc refactoring and cleanup.
See each commit for more information. Biggest changes here is the addition of a `passes` module and each pass now lives in its own submodule.
2016-09-26 17:29:49 -07:00
Jonathan Turner
d6a7a4fb57
Rollup merge of #36676 - bluss:rustdoc-where-css, r=steveklabnik
...
rustdoc css: Put `where` in trait listings on a new line
This is about the gray area at the top of a trait's documentation page,
that lists all methods and their signatures. A big trait page like
Iterator is very crowded without this tweak.
2016-09-26 17:29:48 -07:00
Jonathan Turner
3775be853e
Rollup merge of #36586 - japaric:rustdoc-sysroot, r=alexcrichton
...
rustdoc: implement --sysroot
with the same semantics as rustc. This let us build documentation for a
crate that depends on a custom sysroot.
r? @alexcrichton
cc @cbiffle
2016-09-26 17:29:47 -07:00
Tim Neumann
ad81f11b01
deduplicate inline is_nightly_build implementations
2016-09-26 07:07:41 +02:00
Tim Neumann
3f287efc82
refactor away get_unstable_features_setting
2016-09-26 07:07:41 +02:00
Corey Farwell
99e1b9cfa6
Move in-pass-function structs and impls outside functions.
...
Now that each pass has its own module, there's not much of a reason to
keep these structs within the functions.
2016-09-25 18:05:58 -04:00
Corey Farwell
bd62c4c83d
Move pass contants/types into the new pass
module.
2016-09-25 17:59:40 -04:00
Corey Farwell
f1a3eb633d
Separate rustdoc passes into separate modules.
2016-09-25 17:40:16 -04:00
Corey Farwell
5495fab363
Privatize unindent
function.
...
Doesn't look like it's used anywhere outside the module.
2016-09-25 15:04:01 -04:00
Corey Farwell
a147a9d01b
Fix incorrect alignment for if
statement.
2016-09-25 13:57:12 -04:00
Corey Farwell
ae3ed31155
Use underscores to breakup long number.
2016-09-25 13:56:54 -04:00
Guillaume Gomez
d56b116e63
Rollup merge of #36559 - grimreaper:eax/fix/r1, r=nikomatsakis
...
Fix a variety of minor issues
CSS:
- use integer values for font-size in CSS
- use correct ordering of @import
- "invisible" isn't a tag - presume its a class
- "border-color" defines the complete border
python:
- use "not" instead of == "[]" for python
- prefer triple quoted docstrings
- prefer static functions where possible
- prefer modern style classes where possible
- remove semicolons;
global:
- remove duplicated words words
2016-09-24 00:15:45 +02:00
Ulrik Sverdrup
e82d13ea4b
rustdoc css: Put where
in trait listings on a new line
...
This is about the gray area at the top of a trait's documentation page,
that lists all methods and their signatures. A big trait page like
Iterator is very crowded without this tweak.
2016-09-23 20:31:14 +02:00
Eduard Burtescu
a96abca2a4
rustc_metadata: replace RBML with a simple and type-safe scheme.
2016-09-20 20:08:05 +03:00
Eduard Burtescu
24aef24e1a
rustc_metadata: split the Def description of a DefId from item_children.
2016-09-20 20:08:05 +03:00
Eduard Burtescu
adddfccf2b
rustc_metadata: move all encoding/decoding helpers to methods.
2016-09-20 20:08:05 +03:00
Eduard Burtescu
ef4352fba6
rustc_metadata: group information into less tags.
2016-09-20 20:08:04 +03:00
Eduard Burtescu
89736e8671
rustc: remove ImplOrTraitItemId and TraitDef's associated_type_names.
2016-09-20 20:08:03 +03:00
Eduard Burtescu
8734aaa33e
rustc_metadata: move more RBML tags to auto-serialization.
2016-09-20 20:08:02 +03:00
Eduard Burtescu
02c4155d2c
rustc: remove hir::fold.
2016-09-20 20:08:00 +03:00
Eduard Burtescu
903ec52ba9
rustc: replace uses of NodeId in Def, other than closures and labels.
2016-09-20 20:08:00 +03:00
Eduard Burtescu
fc363cb482
rustc_metadata: go only through rustc_serialize in astencode.
2016-09-20 20:07:54 +03:00
Jorge Aparicio
e0c60b4d02
rustdoc: implement --sysroot
...
with the same semantics as rustc. This let us build documentation for a
crate that depends on a custom sysroot.
2016-09-19 15:56:38 -05:00
Eitan Adler
4f11a39e26
invisible isn't a tag
2016-09-17 23:30:42 -07:00
Eitan Adler
ccb78d20cd
border-color > border
2016-09-17 23:30:22 -07:00
Eitan Adler
101d987d29
add missing semi-colon
2016-09-17 23:29:00 -07:00
Eitan Adler
73d2653417
duplicate the
2016-09-17 23:19:03 -07:00
Eitan Adler
f7811c1ca6
Fix order of @import
...
In CSS 2.1, any @import rules must precede all other rules (except the
@charset rule, if present).
2016-09-17 22:56:22 -07:00
bors
1265cbf4e0
Auto merge of #36393 - petrochenkov:ancient, r=eddyb
...
Remove some obsolete code from the compiler
2016-09-15 13:34:11 -07:00
bors
6ffdda1ba1
Auto merge of #36293 - liigo:docblock-short, r=steveklabnik
...
rustdoc: don't collapse `docblock-short`
![docblock-short](https://cloud.githubusercontent.com/assets/346530/18267298/137d2542-7451-11e6-9c8e-dd4e1f1fea29.png )
2016-09-14 15:39:23 -07:00
bors
5a5736db91
Auto merge of #36472 - GuillaumeGomez:rollup, r=GuillaumeGomez
...
Rollup of 5 pull requests
- Successful merges: #36334 , #36335 , #36363 , #36374 , #36467
- Failed merges:
2016-09-14 08:28:05 -07:00
Guillaume Gomez
d939cbeefe
Rollup merge of #36334 - GuillaumeGomez:run_but, r=steveklabnik
...
Set run button transparent instead of invisible
r? @steveklabnik
And of course a screenshot:
![screenshot from 2016-09-08 01-15-45](https://cloud.githubusercontent.com/assets/3050060/18331849/31fe1f8c-7562-11e6-9ae9-1dab44089ec6.png )
2016-09-14 17:15:36 +02:00
bors
97b561a094
Auto merge of #35667 - ollie27:rustdoc_opaque_structs, r=steveklabnik
...
rustdoc: Don't add extra newlines for fully opaque structs
Changes the definition for braced structs with only private or hidden fields to save space on the page.
Before:
```
pub struct Vec<T> {
// some fields omitted
}
```
After:
```
pub struct Vec<T> { /* fields omitted */ }
```
This also cleans up empty braced structs.
Before:
```
pub struct Foo {
}
```
After:
```
pub struct Foo {}
```
[before](https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html ) [after](https://ollie27.github.io/rust_doc_test/std/vec/struct.Vec.html )
cc #34713
2016-09-14 04:57:47 -07:00
Vadim Petrochenkov
4b6c4c08df
Remove some ancient code providing special support for newtypes
2016-09-13 23:33:50 +03:00
Guillaume Gomez
26315bf015
Rollup merge of #36045 - ollie27:rustdoc_titles3, r=steveklabnik
...
rustdoc: Add missing item types to page titles
Most pages include the item type in the title such as "Struct std::vec::Vec". However it is missing from the pages for foreign functions, type definitions, macros, statics and constants. This adds them so for example, instead of a title of "std::u32::MAX" it is "Constant std::u32::MAX" to match the others.
[before](https://doc.rust-lang.org/nightly/std/u32/constant.MAX.html ) [after](https://ollie27.github.io/rust_doc_test/std/u32/constant.MAX.html )
[before](https://doc.rust-lang.org/nightly/std/io/type.Result.html ) [after](https://ollie27.github.io/rust_doc_test/std/io/type.Result.html )
Previous discussions: #34345 , #35003
2016-09-10 15:57:50 +02:00
Liigo
26d5f99ec0
rustdoc: more docblock-short styles
2016-09-09 12:28:53 +08:00
Liigo
93cdce4cf3
rustdoc: don't collapse docblock-short
2016-09-09 12:28:37 +08:00
Oliver Middleton
8154a6bc69
rustdoc: Don't add extra newlines for fully opaque structs
...
Changes the definition for opaque structs to look like `pub struct Vec<T>
{ /* fields omitted */ }` to save space on the page.
Also only use one line for empty braced structs.
2016-09-09 01:41:42 +01:00
Vadim Petrochenkov
f2b672d556
Refactor TyStruct
/TyEnum
/TyUnion
into TyAdt
2016-09-08 22:17:53 +03:00
Guillaume Gomez
a2faf5477c
Set run button transparent instead of invisible
2016-09-08 01:16:06 +02:00
bors
9627e9ef6e
Auto merge of #36266 - Sawyer47:issue-35169, r=alexcrichton
...
rustdoc: Filter more incorrect methods inherited through Deref
Old code filtered out only static methods. This code also excludes &mut self methods if there is no DerefMut implementation.
Fixes #35169
2016-09-07 12:30:03 -07:00