summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2018-10-24Destabilize 2018 editionPietro Albini-1/+1
This reverts commit 4d1ec818118c6c5dac5af19b291b9601ef98c17e.
2018-10-18Copy extern prelude from resolver to global contextVadim Petrochenkov-0/+1
2018-10-18Use default of preferring static over dynamic linking in rustdoc tests.Felix S. Klock II-1/+0
2018-10-07Revert "Auto merge of #53793 - toidiu:ak-stabalize, r=nikomatsakis"Ariel Ben-Yehuda-0/+1
This reverts commit 6810f5286b6b91daab06fc3dccb27d8c46f14349, reversing changes made to 8586ec6980462c99a8926646201b2444d8938d29.
2018-09-21Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all ↵Eduard-Mihai Burtescu-3/+1
editions.
2018-09-16Rollup merge of #53941 - kzys:sort-impls, r=GuillaumeGomezGuillaume Gomez-4/+20
rustdoc: Sort implementors Fixes #53812
2018-09-15rustc: add unstable support for --extern crate_name without a path.Eduard-Mihai Burtescu-4/+7
2018-09-14Auto merge of #53751 - F001:tuple-struct-self-ctor, r=petrochenkov,varkorbors-3/+6
Implement RFC 2302: tuple_struct_self_ctor Tracking issue: https://github.com/rust-lang/rust/issues/51994
2018-09-14Auto merge of #52962 - GuillaumeGomez:few-things, r=QuietMisdreavusbors-10/+36
Fix trait item doc setting, add new setting, start hiding elements by default and then showing them up r? @QuietMisdreavus
2018-09-13introduce SelfCtorF001-3/+6
2018-09-12rustdoc: Sort implementorsKazuyoshi Kato-4/+20
Fixes #53812
2018-09-13resolve: Put different parent scopes into a single structureVadim Petrochenkov-3/+3
2018-09-12Auto merge of #53409 - GuillaumeGomez:associated-const-value, r=QuietMisdreavusbors-44/+27
Don't show associated const value anymore Part of #44348. Before: <img width="1440" alt="screen shot 2018-08-16 at 00 48 30" src="https://user-images.githubusercontent.com/3050060/44177414-20ef1480-a0ee-11e8-80d4-7caf082cf0de.png"> After: <img width="1440" alt="screen shot 2018-08-16 at 00 48 23" src="https://user-images.githubusercontent.com/3050060/44177417-251b3200-a0ee-11e8-956a-4229275e3342.png"> cc @nox r? @QuietMisdreavus
2018-09-12Auto merge of #53793 - toidiu:ak-stabalize, r=nikomatsakisbors-1/+0
stabilize outlives requirements https://github.com/rust-lang/rust/issues/44493 r? @nikomatsakis
2018-09-12Rollup merge of #54087 - ollie27:rustdoc_blanket_impl, r=QuietMisdreavuskennytm-14/+12
rustdoc: Remove generated blanket impls from trait pages #53801 only deduped the generated blanket impls but they shouldn't be displayed at all because the original blanket impl is already in the "Implementors" section. This also removes the impls from the sidebar. Fixes #53689 r? @QuietMisdreavus
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-1/+0
Co-authored-by: nikomatsakis
2018-09-09rustdoc: Remove generated blanket impls from trait pagesOliver Middleton-14/+12
2018-09-09Stabilize the 2018 editionMark Rousskov-1/+1
2018-09-08Auto merge of #53705 - ms2300:tmp, r=oli-obkbors-2/+2
#53576 Renaming TyAnon -> TyOpaque Fixes #53576
2018-09-06Don't show default docsGuillaume Gomez-16/+11
2018-09-06Fix implementors generation as wellGuillaume Gomez-3/+6
2018-09-06Fix hover on implsGuillaume Gomez-37/+43
2018-09-06Auto merge of #53707 - eddyb:phantom-waffles, r=oli-obkbors-1/+7
rustc_typeck: turn `where Type:,` into a WF(Type) predicate, instead of ignoring it. Fixes #53696, assuming crater doesn't catch anyone using this syntax already. Allowing an empty list of bounds in the grammar was done for the benefit of macro authors, most of which would *probably* be using it for bounds on type parameters, which are always WF. r? @nikomatsakis cc @petrochenkov
2018-09-05Apply method docs collapse to all impl-items sectionsGuillaume Gomez-1/+3
2018-09-05Changing TyAnon -> TyOpaque and relevant functionsms2300-2/+2
2018-09-02Auto merge of #53599 - matthiaskrgr:split_str__to__split_char, r=frewsxcvbors-1/+1
use char pattern for single-character splits: a.split("x") -> a.split('x')
2018-09-01Rollup merge of #53076 - QuietMisdreavus:cfg-rustdoc, r=GuillaumeGomezkennytm-2/+4
set cfg(rustdoc) when rustdoc is running on a crate When using `#[doc(cfg)]` to document platform-specific items, it's a little cumbersome to get all the platforms' items to appear all at once. For example, the standard library adds `--cfg dox` to rustdoc's command line whenever it builds docs, and the documentation for `#![feature(doc_cfg)]` suggests using a Cargo feature to approximate the same thing. This is a little awkward, because you always need to remember to set `--features dox` whenever you build documentation. This PR proposes making rustdoc set `#[cfg(rustdoc)]` whenever it runs on a crate, to provide an officially-sanctioned version of this that is set automatically. This way, there's a standardized way to declare that a certain version of an item is specifically when building docs. To try to prevent the spread of this feature from happening too quickly, this PR also restricts the use of this flag to whenever `#![feature(doc_cfg)]` is active. I'm sure there are other uses for this, but right now i'm tying it to this feature. (If it makes more sense to give this its own feature, i can easily do that.)
2018-09-01Rollup merge of #53801 - GuillaumeGomez:duplicated-foreign-type-impls, ↵kennytm-5/+9
r=QuietMisdreavus Prevent duplicated impl on foreign types Fixes #53689. r? @QuietMisdreavus
2018-08-31feature(doc_cfg): set cfg(rustdoc) when rustdoc is runningQuietMisdreavus-2/+4
2018-08-31Auto merge of #51384 - QuietMisdreavus:extern-version, r=GuillaumeGomezbors-3/+43
rustdoc: add flag to control the html_root_url of dependencies The `--extern-html-root-url` flag in this PR allows one to override links to crates whose docs are not already available locally in the doc bundle. Docs.rs currently uses a version of this to make sure links to other crates go into that crate's docs.rs page. See the included test for intended use, but the idea is as follows: Calling rustdoc with `--extern-html-root-url crate=https://some-url.com` will cause rustdoc to override links that point to that crate to instead be replaced with a link rooted at `https://some-url.com/`. (e.g. for docs.rs this would be `https://docs.rs/crate/0.1.0` or the like.) Cheekily, rustup could use these options to redirect links to std/core/etc to instead point to locally-downloaded docs, if it so desired. Fixes https://github.com/rust-lang/rust/issues/19603
2018-08-31rustc_typeck: turn `where Type:,` into a WF(Type) predicate, instead of ↵Eduard-Mihai Burtescu-1/+7
ignoring it.
2018-08-30Rollup merge of #53806 - GuillaumeGomez:fix-ui-issues-foreign-type-impls, ↵Pietro Albini-0/+11
r=QuietMisdreavus Fix UI issues on Implementations on Foreign types Fixes #53800. <img width="1440" alt="screen shot 2018-08-29 at 22 06 35" src="https://user-images.githubusercontent.com/3050060/44814733-e9986180-abdd-11e8-97e0-0e3c1816ca04.png"> r? @QuietMisdreavus
2018-08-30Rollup merge of #53747 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavusPietro Albini-0/+6
Rustdoc fixes Fixes rustdoc not scrolling to given lines and invalid unstable display: <img width="1440" alt="screen shot 2018-08-27 at 23 28 47" src="https://user-images.githubusercontent.com/3050060/44687252-06535e80-aa51-11e8-8512-d7d34d1cb963.png"> r? @QuietMisdreavus
2018-08-29Prevent duplicated impl on foreign typesGuillaume Gomez-5/+9
2018-08-29Fix UI issues on Implementations on Foreign typesGuillaume Gomez-0/+11
2018-08-28Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.Eduard-Mihai Burtescu-37/+39
2018-08-27Rename hir::map::NodeKind to hir::Nodevarkor-4/+4
2018-08-27Remove path prefixes from NodeKindvarkor-4/+4
2018-08-27Rename hir::map::Node to hir::map::NodeKindvarkor-3/+3
2018-08-27Fix invalid display of unstable messagesGuillaume Gomez-0/+5
2018-08-27Fix source automatic scrollGuillaume Gomez-0/+1
2018-08-27Auto merge of #53441 - toidiu:ak-fix53419, r=nikomatsakisbors-0/+1
fix for late-bound regions Fix for https://github.com/rust-lang/rust/issues/53419 r? @nikomatsakis
2018-08-26Remove static and const initialization from documentationGuillaume Gomez-17/+4
2018-08-26Rollup merge of #53706 - ehuss:rustdoc-section-anchor, r=GuillaumeGomezGuillaume Gomez-3/+2
rustdoc: Fix gap on section anchor symbol when hovering. Fixes #49485 for section headings.
2018-08-26Rollup merge of #53626 - kzys:hashchange, r=GuillaumeGomezGuillaume Gomez-16/+36
Automatically expand a section even after page load Fixes #52774
2018-08-26Rollup merge of #53043 - GuillaumeGomez:improve-unstable-msg-display, ↵Guillaume Gomez-0/+13
r=QuietMisdreavus Improve unstable message display Fixes #51387. Reopening of #51563. New display: <img width="1440" alt="screen shot 2018-08-04 at 00 01 39" src="https://user-images.githubusercontent.com/3050060/43667793-dc14f708-9779-11e8-9808-f3ff126fc213.png"> r? @QuietMisdreavus
2018-08-25rustdoc: Fix gap on section anchor symbol when hovering.Eric Huss-3/+2
Fixes #49485 for section headings.
2018-08-25Add collapser for associated constGuillaume Gomez-4/+3
2018-08-25Don't show associated const value anymoreGuillaume Gomez-23/+20
2018-08-25Expand a collapsed element on onclickKazuyoshi Kato-16/+21
Doing the expansion on onhashchange seems too late. Fixes #48726