Guillaume Gomez
4b402dbe69
Remove underline when run button hovered
2016-10-06 18:10:00 +02:00
Vadim Petrochenkov
bc0eabd7a7
Remove some unused methods from metadata
...
Address comments + Fix rebase
2016-10-04 23:53:51 +03:00
Vadim Petrochenkov
bd291ce21a
Turn some impossible definitions into ICEs
2016-10-04 22:25:25 +03:00
Vadim Petrochenkov
75d6522b9a
Eliminate ty::VariantKind in favor of def::CtorKind
2016-10-04 22:22:36 +03:00
Vadim Petrochenkov
d19c16acfb
Fix cross-crate resolution of half-items created by export shadowing
2016-10-04 22:20:37 +03:00
Manish Goregaokar
825e6b3287
Rollup merge of #36903 - frewsxcv:typekind, r=jseyfried
...
Minor librustdoc cleanup and refactoring.
2016-10-04 15:24:02 +05:30
bors
ff713464e6
Auto merge of #36847 - alexcrichton:rustc-macro-doc, r=nrc
...
rustdoc: Fix documenting rustc-macro crates
This commit adds a "hack" to the session to track whether we're a rustdoc
session or not. If we're rustdoc then we skip the expansion to add the
rustc-macro infrastructure.
Closes #36820
2016-10-03 07:40:22 -07:00
Corey Farwell
35d214afe6
Remove redundant 'Variant' in variant names, stop reexporting.
2016-10-02 21:58:23 -04:00
Corey Farwell
88d41441f6
Migrate VariantKind constructor to Clean impl.
...
https://github.com/rust-lang/rust/pull/36903#discussion_r81477884
2016-10-02 21:58:22 -04:00
Corey Farwell
b55468c8fe
Simplify equality checks.
2016-10-02 21:58:22 -04:00
Corey Farwell
5b9ba4c550
Remove redundant 'Import' in variant names, stop reexporting.
2016-10-02 21:58:21 -04:00
Corey Farwell
a400cccd54
Cleanup return statements.
2016-10-02 21:58:20 -04:00
Corey Farwell
6d0894940f
Migrate VariantKind construction function to associated function.
2016-10-02 21:58:20 -04:00
Corey Farwell
0d0f1b4690
Rename method 'to_string' to match conventions.
2016-10-02 21:58:19 -04:00
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
Alex Crichton
7724a04b0f
rustdoc: Fix documenting rustc-macro crates
...
This commit adds a "hack" to the session to track whether we're a rustdoc
session or not. If we're rustdoc then we skip the expansion to add the
rustc-macro infrastructure.
Closes #36820
2016-09-30 10:49:30 -07: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