about summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
AgeCommit message (Collapse)AuthorLines
2016-04-27Auto merge of #33151 - ollie27:rustdoc_abi, r=alexcrichtonbors-6/+1
rustdoc: Cleanup ABI rendering Use a common method for rendering `extern "<abi>"`. This now consistently shows `extern fn` rather than `extern "C" fn`.
2016-04-26Auto merge of #33191 - alexcrichton:rustdoc-create-dir-all-racy, r=steveklabnikbors-6/+9
rustdoc: Handle concurrent mkdir requests It's likely that `rustdoc` as a tool is run concurrently in the same output (e.g. documenting multiple crates as Cargo does), in which case it needs to handle concurrent calls to `fs::create_dir`.
2016-04-26Rollup merge of #33196 - mitaa:rdoc-crate-links, r=alexcrichtonManish Goregaokar-2/+5
rustdoc: Linkify extern crates fixes #33178 r? @alexcrichton
2016-04-26Rollup merge of #33194 - mitaa:rdoc-a, r=alexcrichtonManish Goregaokar-2/+3
rustdoc: Improve accessibility of rustdoc pages fixes #33131 r? @alexcrichton
2016-04-26Rollup merge of #33160 - euclio:rustdoc-unstable-deprecated, r=alexcrichtonManish Goregaokar-29/+38
show unstable status for deprecated items Fixes #32374.
2016-04-25Linkify extern crates on rustdoc pagesmitaa-2/+5
2016-04-25Improve accessibility of rustdoc pagesmitaa-2/+3
2016-04-24rustdoc: Handle concurrent mkdir requestsAlex Crichton-6/+9
It's likely that `rustdoc` as a tool is run concurrently in the same output (e.g. documenting multiple crates as Cargo does), in which case it needs to handle concurrent calls to `fs::create_dir`.
2016-04-22show unstable status for deprecated itemsAndy Russell-29/+38
2016-04-22Only record the same impl oncemitaa-24/+38
Due to inlining it is possible to visit the same module multiple times during `<Cache as DocFolder>::fold_crate`, so we keep track of the modules we've already visited.
2016-04-22rustdoc: Cleanup ABI renderingOliver Middleton-6/+1
Use a common method for rendering `extern "<abi>"`. This now consistently shows `extern "C" fn` rather than just `extern fn`.
2016-04-19Auto merge of #33002 - mitaa:rdoc-cross-impls, r=alexcrichtonbors-21/+33
rustdoc: refine cross-crate impl inlining This changes the current rule that impls within `doc(hidden)` modules aren't inlined, to only inlining impls where the implemented trait and type are reachable in documentation. fixes #14586 fixes #31948 .. and also applies the reachability checking to cross-crate links. fixes #28480 r? @alexcrichton
2016-04-19Auto merge of #32985 - caipre:rustdoc-disambiguate-impl-anchors, r=alexcrichtonbors-14/+26
rustdoc: Disambiguate anchors Closes https://github.com/rust-lang/rust/issues/32890
2016-04-18Rollup merge of #32558 - sanxiyn:rustdoc-self-link, r=steveklabnikSteve Klabnik-1/+4
Avoid linking to itself in implementors section of trait page Fix #32474.
2016-04-17rustdoc: Disambiguate anchors for assoc item implsNick Platt-14/+26
2016-04-18Reachability check cross-crate linksmitaa-4/+5
2016-04-18Perform doc-reachability check for inlined implsmitaa-0/+3
This changes the current rule that impls within `doc(hidden)` modules aren't inlined, to only inlining impls where the implemented trait and type are reachable in documentation.
2016-04-16Auto merge of #32875 - jseyfried:1422_implementation, r=nikomatsakisbors-1/+2
Implement `pub(restricted)` privacy (RFC 1422) This implements `pub(restricted)` privacy from RFC 1422 (cc #32409) behind a feature gate. `pub(restricted)` paths currently cannot use re-exported modules both for simplicity of implementation and for future compatibility with RFC 1560 (cf #31783). r? @nikomatsakis
2016-04-15Add flag for whether an item is default or not.pierzchalski-4/+4
We don't want to render default item docs but previously `doctraititem` naively delegated to the trait definition in those cases. Updated tests to also check that this doesn't strip default item docs from the trait definition.
2016-04-14Fix fallout in rustdocJeffrey Seyfried-1/+2
2016-04-14Delegate whether to print docblocks to 'document'pierzchalski-5/+4
Add test to check this resolves #24838 and #26871.
2016-04-13Retire rustdocs `ANALYSISKEY`mitaa-21/+29
The thread-local isn't needed and consists of mostly empty fields which were just used to move the data into `html::render::CACHE_KEY`.
2016-04-07Make `hir::Visibility` non-copyable and add `ty::Visibility`Jeffrey Seyfried-11/+11
2016-04-06Auto merge of #32230 - GuillaumeGomez:extend_css, r=alexcrichtonbors-4/+22
Add --extend-css option to rustdoc Fixes #32223 r? @brson
2016-04-06Update to last rustdoc versionGuillaume Gomez-5/+5
2016-04-06rustc: move middle::{def,def_id,pat_util} to hir.Eduard Burtescu-1/+1
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-1/+1
2016-04-05Rollup merge of #32715 - nrc:rustdoc-highlight, r=cmrManish Goregaokar-4/+4
rustdoc: factor out function for getting inner html of highlighted source
2016-04-05Centralize nightly compiler flags handlingGuillaume Gomez-4/+0
2016-04-05Add --extend-css option to rustdocGuillaume Gomez-5/+27
2016-04-04rustdoc: factor out function for getting inner html of highlighted sourceNick Cameron-4/+4
2016-04-02Slim down `rustdoc::html::render::Context`mitaa-40/+47
Like the comment on `Context` explains, `Context` is supposed to be lightweight, so we're putting everything that's immutable after creation of the Context behind an `Arc<SharedContext>`.
2016-04-02Refactor `HiddenStructField` into `StrippedItem`mitaa-26/+14
2016-04-02Make the rendering process less pass-awaremitaa-100/+84
Instead of hardcoding knowledge about the strip-private pass into the rendering process we represent (some) stripped items as `ItemEnum::StrippedItem`. Rustdoc will, for example, generate redirect pages for public items contained in private modules which have been re-exported to somewhere externally reachable - this will now not only work for the `strip-private` pass, but for other passes as well, such as the `strip-hidden` pass.
2016-03-29Avoid linking to itself in implementors section of trait pageSeo Sanghyeon-1/+4
2016-03-27Don't initialize id-map when rendering md filesmitaa-4/+10
Adding these "known" values to the table of used ids is only required when embedding markdown into a rustdoc html page and may yield unexpected results when rendering a standalone `*.md` file.
2016-03-27Linkify associated types and constantsmitaa-17/+41
2016-03-27Don't hardcode item-type anchor idsmitaa-13/+17
These should always correspond to the values in `ItemType::to_static_str`
2016-03-27Correct anchor for links to associated trait itemsmitaa-45/+47
2016-03-23Auto merge of #32454 - eddyb:rollup, r=eddybbors-2/+3
Rollup of 11 pull requests - Successful merges: #32404, #32420, #32423, #32425, #32429, #32430, #32431, #32434, #32437, #32441, #32443 - Failed merges:
2016-03-22fix alignmentJorge Aparicio-137/+136
2016-03-22try! -> ?Jorge Aparicio-283/+283
Automated conversion using the untry tool [1] and the following command: ``` $ find -name '*.rs' -type f | xargs untry ``` at the root of the Rust repo. [1]: https://github.com/japaric/untry
2016-03-22Consider `doc(no_inline)` in crate-local inliningmitaa-2/+3
2016-03-08rustdoc: correct src-link urlmitaa-1/+1
2016-03-04This doesn't seem necessary?mitaa-1/+1
2016-03-04Use const instead of functionmitaa-5/+3
2016-03-04Use `Item::is_*` methods consistentlymitaa-18/+6
2016-03-04Refactor rustdocs attribute handlingmitaa-38/+9
2016-03-04Simplify `if let`/`match` expressionsmitaa-172/+134
2016-03-03Refactor src-link creation for local sourcesmitaa-41/+32
Since we emit the sources beforhand we actually **know** whether we can safely create src-links to these files and where they are stored.