summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2016-02-27Correct plain-summary-linemitaa-2/+2
For plaintext we don't actually need to render the Markdown before shortening the string. (and this may have led to wrong output)
2016-02-27Clearly separate code blocks from other blocksmitaa-1/+3
For summary descriptions we need the first paragraph (adjacent lines until a blank line) - but the rendered markdown of a code block did not leave a blank line in the html and was thus included in the summary line.
2016-02-26Don't inline impls from `doc(hidden)` modulesmitaa-11/+16
2016-02-25Rollup merge of #31837 - mitaa:rdoc-inherent-assoc, r=alexcrichtonManish Goregaokar-4/+11
This effectively only records associated items from either inherent impls or trait definitions in the search-index. fixes #31808 r? @alexcrichton
2016-02-25Rollup merge of #31835 - mitaa:rdoc-global-src, r=alexcrichtonManish Goregaokar-9/+19
fixes #26995 r? @alexcrichton
2016-02-25Rollup merge of #31842 - dileepbapat:master, r=alexcrichtonManish Goregaokar-3/+2
I have made changes and built it after that. Please advise, https://github.com/rust-lang/rust/issues/31820
2016-02-24Fix source-links for files with absolute-pathsmitaa-8/+16
`clean_srcpath` tries to make the source-path relative to `src_root`, but this didn't work since `src_root` itself wasn't absolute.
2016-02-24Allow creation of src-links for device filesmitaa-1/+3
2016-02-23Show associated types in inherent implsmitaa-6/+3
2016-02-23Don't show associated consts from trait implsmitaa-0/+10
2016-02-23#31820 - Utilize `if..let` instead of single `match` branchdileepb-3/+2
2016-02-23Don't record self parameter for static methodsmitaa-6/+7
2016-02-22Auto merge of #31715 - mitaa:rdoc-index-crate, r=alexcrichtonbors-111/+112
This allows to search for crates in documentation and simplifies the json serialization of the search-index. fixes #14077
2016-02-22Simplify search-index serializationmitaa-112/+94
2016-02-17Auto merge of #31685 - petrochenkov:patrefact2, r=eddybbors-12/+12
And split `PatKind::Enum` into `PatKind::TupleStruct` and `PatKind::Path`. This is the HIR part of https://github.com/rust-lang/rust/pull/31581. This is also kind of a preparation for https://github.com/rust-lang/rfcs/pull/1492. r? @eddyb
2016-02-16Add crates to search-indexmitaa-9/+28
2016-02-16doc pages: add the ability to search unknown typesBrandon W Maister-4/+4
This enables `*` in all type positions in doc searches, which I often want in order to find functions that create or convert specific types (e.g. `* -> vec`) but I don't actually know what kinds of input they expect. I actually started working on this because of #31598, but I've wanted it several times when exploring new crates.
2016-02-16Split PatKind::Enum into PatKind::TupleStruct and PatKind::PathVadim Petrochenkov-1/+1
2016-02-14Rename hir::Pat_ and its variantsVadim Petrochenkov-12/+12
2016-02-14Auto merge of #31626 - mitaa:rdoc-srch-escape, r=alexcrichtonbors-2/+2
Maybe they should be Markdown rendered instead, though that doesn't really seem to work all that well. fixes #31059 r? @alexcrichton
2016-02-14Auto merge of #31614 - mitaa:rdoc_locitem_extmac, r=alexcrichtonbors-5/+11
fixes #26606 r? @alexcrichton
2016-02-13Auto merge of #31602 - mitaa:rdoc_doc_shorter, r=alexcrichtonbors-3/+4
fixes #25787 fixes #30366 r? @alexcrichton
2016-02-13Auto merge of #31596 - mitaa:rdoc_assoc_item, r=alexcrichtonbors-8/+6
2016-02-13Escape search-index item descriptionsmitaa-2/+2
The item descriptions are included verbatim in search results causing certain character sequences to misbehave.
2016-02-12Omit src-links for items from extern macrosmitaa-5/+11
If the span of a local item points into an external macro its source-file will be bogus.
2016-02-12Auto merge of #30726 - GuillaumeGomez:compile-fail, r=brsonbors-26/+67
r? @brson cc @alexcrichton I still need to add error code explanation test with this, but I can't figure out a way to generate the `.md` files in order to test example source codes. Will fix #27328.
2016-02-12Shorten docstrings after Markdown renderingmitaa-3/+4
2016-02-12Fix associated item identifiersmitaa-4/+4
Search results use the mapping found in `ItemType::to_static_str` for the identifier, which could not be found on the page in the case of associated items.
2016-02-12Fix inherent-associated-const search result linksmitaa-4/+2
Normal constants have their own page while associated constants are embedded within their parent-items page.
2016-02-11bootstrap: Add directives to not double-link libsAlex Crichton-0/+4
Have all Cargo-built crates pass `--cfg cargobuild` and then add appropriate `#[cfg]` definitions to all crates to avoid linking anything if this is passed. This should help allow libstd to compile with both the makefiles and with Cargo.
2016-02-11bootstrap: Add build scripts for cratesAlex Crichton-0/+26
This commits adds build scripts to the necessary Rust crates for all the native dependencies. This is currently a duplication of the support found in mk/rt.mk and is my best effort at representing the logic twice, but there may be some unfortunate-and-inevitable divergence. As a summary: * alloc_jemalloc - build script to compile jemallocal * flate - build script to compile miniz.c * rustc_llvm - build script to run llvm-config and learn about how to link it. Note that this crucially (and will not ever) compile LLVM as that would take far too long. * rustdoc - build script to compile hoedown * std - script to determine lots of libraries/linkages as well as compile libbacktrace
2016-02-11bootstrap: Add a bunch of Cargo.toml filesAlex Crichton-0/+30
These describe the structure of all our crate dependencies.
2016-02-11[breaking-change] don't glob export ast::MetaItem_Oliver 'ker' Schneider-3/+3
2016-02-11[breaking-change] don't pub export ast::Lit_ variantsOliver Schneider-8/+8
2016-02-11[breaking-change] don't glob export ast::{UintTy, IntTy} variantsOliver Schneider-20/+20
2016-02-11[breaking-change] don't glob export ast::FloatTy variantsOliver Schneider-4/+4
2016-02-11[breaking-change] don't glob import/export syntax::abi enum variantsOliver Schneider-5/+5
2016-02-11Auto merge of #31507 - dirk:dirk/fix-rustdoc-undeclared-type-ice, r=nrcbors-4/+15
Fixes #31451.
2016-02-09Rustdoc - display `since` version for stable itemsWesley Wiser-27/+94
Fixes #27607
2016-02-09Fix librustdoc testGuillaume Gomez-27/+13
2016-02-09Check if we're not in stable to allow compile_fail option in rustdoc --testGuillaume Gomez-3/+24
2016-02-08Make rustdoc report driver phase-3 errors instead of continuingDirk Gadsden-4/+15
Fixes #31451.
2016-02-09Update MakefileGuillaume Gomez-1/+1
2016-02-07Add compile-fail test in rustdocGuillaume Gomez-26/+60
2016-02-05Instrument the AST map so that it registers reads when data isNiko Matsakis-2/+6
acccessed.
2016-02-03Auto merge of #31078 - nbaksalyar:illumos, r=alexcrichtonbors-0/+19
This pull request adds support for [Illumos](http://illumos.org/)-based operating systems: SmartOS, OpenIndiana, and others. For now it's x86-64 only, as I'm not sure if 32-bit installations are widespread. This PR is based on #28589 by @potatosalad, and also closes #21000, #25845, and #25846. Required changes in libc are already merged: https://github.com/rust-lang-nursery/libc/pull/138 Here's a snapshot required to build a stage0 compiler: https://s3-eu-west-1.amazonaws.com/nbaksalyar/rustc-sunos-snapshot.tar.gz It passes all checks from `make check`. There are some changes I'm not quite sure about, e.g. macro usage in `src/libstd/num/f64.rs` and `DirEntry` structure in `src/libstd/sys/unix/fs.rs`, so any comments on how to rewrite it better would be greatly appreciated. Also, LLVM configure script might need to be patched to build it successfully, or a pre-built libLLVM should be used. Some details can be found here: https://llvm.org/bugs/show_bug.cgi?id=25409 Thanks! r? @brson
2016-02-03Rollup merge of #31329 - quodlibetor:no-const-doc-in-stable, r=alexcrichtonManish Goregaokar-2/+12
Fixes #31098 AFAICT this is the only place where rustdoc explicitly checks if we are on stable before emitting content, so I can't tell if this is the sane way to handle this, or if anything else should be done to make sure that nobody forgets to remove this check when `const` is stabilized.
2016-02-02Reviewer requested changes and test fixesNick Cameron-1/+1
2016-02-01Decide to hide constness only in fn/method rendersBrandon W Maister-5/+12
ConstnessSpace has no knowledge of the type of item it's modifying, so hide the constness a level up.
2016-01-31Don't show `const` in docs when it's not availableBrandon W Maister-0/+3
Fixes #31098