summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2016-10-19Stabilise `?`Nick Cameron-1/+1
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)
2016-09-26Auto merge of #36764 - jonathandturner:rollup, r=jonathandturnerbors-454/+564
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-26Rollup merge of #36729 - frewsxcv:rustdoc, r=alexcrichtonJonathan Turner-451/+552
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-26Rollup merge of #36676 - bluss:rustdoc-where-css, r=steveklabnikJonathan Turner-0/+5
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-26Rollup merge of #36586 - japaric:rustdoc-sysroot, r=alexcrichtonJonathan Turner-3/+7
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-26deduplicate inline is_nightly_build implementationsTim Neumann-7/+4
2016-09-26refactor away get_unstable_features_settingTim Neumann-9/+7
2016-09-25Move in-pass-function structs and impls outside functions.Corey Farwell-68/+74
Now that each pass has its own module, there's not much of a reason to keep these structs within the functions.
2016-09-25Move pass contants/types into the new `pass` module.Corey Farwell-33/+35
2016-09-25Separate rustdoc passes into separate modules.Corey Farwell-416/+508
2016-09-25Privatize `unindent` function.Corey Farwell-1/+1
Doesn't look like it's used anywhere outside the module.
2016-09-25Fix incorrect alignment for `if` statement.Corey Farwell-1/+2
2016-09-25Use underscores to breakup long number.Corey Farwell-1/+1
2016-09-24Rollup merge of #36559 - grimreaper:eax/fix/r1, r=nikomatsakisGuillaume Gomez-6/+7
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-23rustdoc css: Put `where` in trait listings on a new lineUlrik Sverdrup-0/+5
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-20rustc_metadata: replace RBML with a simple and type-safe scheme.Eduard Burtescu-1/+1
2016-09-20rustc_metadata: split the Def description of a DefId from item_children.Eduard Burtescu-30/+17
2016-09-20rustc_metadata: move all encoding/decoding helpers to methods.Eduard Burtescu-2/+2
2016-09-20rustc_metadata: group information into less tags.Eduard Burtescu-22/+14
2016-09-20rustc: remove ImplOrTraitItemId and TraitDef's associated_type_names.Eduard Burtescu-4/+2
2016-09-20rustc_metadata: move more RBML tags to auto-serialization.Eduard Burtescu-82/+89
2016-09-20rustc: remove hir::fold.Eduard Burtescu-78/+87
2016-09-20rustc: replace uses of NodeId in Def, other than closures and labels.Eduard Burtescu-5/+2
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-22/+21
2016-09-19rustdoc: implement --sysrootJorge Aparicio-3/+7
with the same semantics as rustc. This let us build documentation for a crate that depends on a custom sysroot.
2016-09-17invisible isn't a tagEitan Adler-1/+1
2016-09-17border-color > borderEitan Adler-1/+1
2016-09-17add missing semi-colonEitan Adler-1/+2
2016-09-17duplicate theEitan Adler-1/+1
2016-09-17Fix order of @importEitan Adler-2/+2
In CSS 2.1, any @import rules must precede all other rules (except the @charset rule, if present).
2016-09-15Auto merge of #36393 - petrochenkov:ancient, r=eddybbors-21/+13
Remove some obsolete code from the compiler
2016-09-14Auto merge of #36293 - liigo:docblock-short, r=steveklabnikbors-10/+10
rustdoc: don't collapse `docblock-short` ![docblock-short](https://cloud.githubusercontent.com/assets/346530/18267298/137d2542-7451-11e6-9c8e-dd4e1f1fea29.png)
2016-09-14Auto merge of #36472 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-20/+17
Rollup of 5 pull requests - Successful merges: #36334, #36335, #36363, #36374, #36467 - Failed merges:
2016-09-14Rollup merge of #36334 - GuillaumeGomez:run_but, r=steveklabnikGuillaume Gomez-20/+17
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-14Auto merge of #35667 - ollie27:rustdoc_opaque_structs, r=steveklabnikbors-6/+15
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-13Remove some ancient code providing special support for newtypesVadim Petrochenkov-21/+13
2016-09-10Rollup merge of #36045 - ollie27:rustdoc_titles3, r=steveklabnikGuillaume Gomez-3/+15
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-09rustdoc: more docblock-short stylesLiigo-5/+5
2016-09-09rustdoc: don't collapse `docblock-short`Liigo-5/+5
2016-09-09rustdoc: Don't add extra newlines for fully opaque structsOliver Middleton-6/+15
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-08Refactor `TyStruct`/`TyEnum`/`TyUnion` into `TyAdt`Vadim Petrochenkov-9/+7
2016-09-08Set run button transparent instead of invisibleGuillaume Gomez-20/+17
2016-09-07Auto merge of #36266 - Sawyer47:issue-35169, r=alexcrichtonbors-27/+69
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-05Auto merge of #36078 - ollie27:rustdoc_search_assocconst, r=alexcrichtonbors-11/+10
rustdoc: Fix associated consts in search results Associated consts can appear in none trait impls so need to be treated like methods when generating the search index. Fixes #36031
2016-09-05rustdoc: Filter more incorrect methods inherited through DerefPiotr Jawniak-27/+69
Old code filtered out only static methods. This code also excludes &mut self methods if there is no DerefMut implementation
2016-09-04Auto merge of #36240 - leeopop:master, r=jseyfriedbors-2/+2
Allow CompilerControllers to access rustc_plugin::registry::Registry fixes #36064 I chose to put ructc_plugin::registry::Registry structure into CompilerState structure, instead of Session structure. This will preserve dependencies among librustc, libructc_driver, and libructc_plugin. @jseyfried @sanxiyn
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-7/+8
2016-09-04Allow CompilerControllers to access rustc_plugin::registry::Registry structure.Keunhong Lee-2/+2
2016-09-03Fix rebase + address commentsVadim Petrochenkov-5/+4
2016-09-03Support unions in rustdocVadim Petrochenkov-8/+184