summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2018-05-06rustdoc: Resolve nested `impl Trait`sShotaro Yamada-31/+32
2018-04-21Auto merge of #50089 - alexcrichton:beta-next, r=sfacklerbors-1/+1
[beta] Tweak some stabilizations in libstd This is a backport of https://github.com/rust-lang/rust/pull/50088
2018-04-20Fix rustdoc after changing type param representation.Michael Woerister-3/+11
2018-04-19[beta] Tweak some stabilizations in libstdAlex Crichton-1/+1
This commit tweaks a few stable APIs in the `beta` branch before they hit stable. The `str::is_whitespace` and `str::is_alphanumeric` functions were deleted (added in #49381, issue at #49657). The `and_modify` APIs added in #44734 were altered to take a `FnOnce` closure rather than a `FnMut` closure. Closes #49581 Closes #49657
2018-04-01Rollup merge of #49451 - QuietMisdreavus:epoch-doctests, r=GuillaumeGomezMark Simulacrum-17/+57
rustdoc: add an --edition flag to compile docs/doctests with a certain edition To correspond with the 2018 edition, this adds a (currently unstable) `--edition` flag to rustdoc that makes it compile crates and doctests with the given edition. Once this lands, Cargo should be updated to pass this flag when the edition configuration option is given.
2018-04-01Auto merge of #49522 - mbrubeck:fs_read, r=SimonSapinbors-1/+1
Rename fs::read_string to read_to_string and stabilize As approved in https://github.com/rust-lang/rust/issues/46588#issuecomment-377530365 Closes #46588.
2018-03-31Auto merge of #49201 - Phlosioneer:add-trivial-size-hints, r=SimonSapinbors-0/+5
Implement some trivial size_hints for various iterators This also implements ExactSizeIterator where applicable. Addresses most of the Iterator traits mentioned in #23708. I intend to do more, but I don't want to make the PR too large.
2018-03-31Auto merge of #49459 - GuillaumeGomez:primitive-intra-links, r=QuietMisdreavusbors-13/+72
Add primitive intra-links Part of #43466. r? @QuietMisdreavus
2018-03-30Rename fs::read_string to read_to_string and stabilizeMatt Brubeck-1/+1
2018-03-30Auto merge of #49489 - kennytm:rollup, r=kennytmbors-14/+16
Rollup of 10 pull requests - Successful merges: #49443, #49445, #49446, #49463, #49464, #49466, #49468, #49473, #49484, #49486 - Failed merges:
2018-03-30Auto merge of #49412 - GuillaumeGomez:hide-type-decl, r=QuietMisdreavusbors-138/+165
Hide type declarations by default I'm not very happy for the moment about the rendering but the bases are here: <img width="610" alt="screen shot 2018-03-27 at 11 56 27" src="https://user-images.githubusercontent.com/3050060/37960492-0e045954-31b6-11e8-9cea-1ef8a3f980c4.png"> r? @QuietMisdreavus
2018-03-30Rollup merge of #49445 - GuillaumeGomez:light-theme, r=QuietMisdreavuskennytm-12/+12
Rename main theme into light theme r? @QuietMisdreavus
2018-03-30Rollup merge of #49443 - GuillaumeGomez:fix-tooltip-position, r=QuietMisdreavuskennytm-2/+4
Fix tooltip position r? @QuietMisdreavus
2018-03-29Rename main theme into light themeGuillaume Gomez-12/+12
2018-03-29Add primitive intra-linksGuillaume Gomez-13/+72
2018-03-29tidyQuietMisdreavus-2/+8
2018-03-29Auto merge of #49313 - sgrif:sg-revert-stuff, r=nikomatsakisbors-2/+0
Remove universes from `ty::ParamEnv` This change was never meant to land. #48407 takes an alternate approach. However, that PR is now blocked on some issues with canonicalization, and rebasing these reverts gets harder each time, so let's just get this bit out of the way now. r? @nikomatsakis
2018-03-28Fix tooltip positionGuillaume Gomez-2/+4
2018-03-28Rollup merge of #49442 - GuillaumeGomez:text-overlap, r=QuietMisdreavuskennytm-20/+43
Fix text overlap Fixes #49006. r? @QuietMisdreavus
2018-03-28Rollup merge of #49439 - GuillaumeGomez:trait-impl-collapse, r=QuietMisdreavuskennytm-10/+15
Fix trait implementation not collapsing docs r? @QuietMisdreavus
2018-03-28Rollup merge of #49429 - GuillaumeGomez:fix-collapse-toggle-insertion, ↵kennytm-0/+3
r=QuietMisdreavus Fix collapse toggle insertions on impl with docs Just went through this one randomly... When an impl has docs, the collapse toggle isn't generated. This fixes it. r? @QuietMisdreavus
2018-03-28Rollup merge of #49427 - Manishearth:rustdoc-impl-trait-extern, r=GuillaumeGomezkennytm-10/+59
Correctly handle impl trait in external items in rustdoc fixes #49373 r? @QuietMisdreavus
2018-03-28Rollup merge of #49405 - GuillaumeGomez:search-appearance, r=QuietMisdreavuskennytm-3/+20
Fix search appearance Fixes #49377. r? @QuietMisdreavus And a screenshot: <img width="1016" alt="screen shot 2018-03-27 at 10 33 01" src="https://user-images.githubusercontent.com/3050060/37956373-7b522852-31ab-11e8-8915-7e20064b5edd.png">
2018-03-28Auto merge of #49019 - phil-opp:target-spec, r=pnkfelixbors-3/+12
Introduce a TargetTriple enum to support absolute target paths This PR replaces target triple strings with a `TargetTriple` enum, which represents either a target triple or a path to a JSON target file. The path variant is used if the `--target` argument has a `.json` extension, else the target triple variant is used. The motivation of this PR is support for absolute target paths to avoid the need for setting the `RUST_TARGET_PATH` environment variable (see rust-lang/cargo#4905 for more information). For places where some kind of triple is needed (e.g. in the sysroot folder), we use the file name (without extension). For compatibility, we keep the old behavior of searching for a file named `$(target_triple).json` in `RUST_TARGET_PATH` for non-official target triples.
2018-03-28use --edition for doctests, rather than just the crateQuietMisdreavus-8/+17
2018-03-28Fix text overlapGuillaume Gomez-20/+43
2018-03-28Fix trait implementation not collapsing docsGuillaume Gomez-10/+15
2018-03-28Auto merge of #49304 - sinkuu:impl_trait_rustdoc, r=QuietMisdreavusbors-28/+81
Rustdoc support for universal_impl_trait Hides type parameters synthesized by `impl Trait`-in-argument-position, and enables links to trait names. <img alt="before" src="https://user-images.githubusercontent.com/7091080/37831646-a61413c6-2ee9-11e8-8ec2-a6137956d922.png" width="450"/> ↓ <img alt="after" src="https://user-images.githubusercontent.com/7091080/37831657-b2ff0ae6-2ee9-11e8-8797-fdad904782bf.png" width="450"/> Fixes #49309
2018-03-27rustdoc: Handle explicit ?Sized on foreign impl TraitManish Goregaokar-3/+14
2018-03-27rustdoc: Remove Sized bounds when cleaning foreign impl TraitManish Goregaokar-0/+8
2018-03-27rustdoc: Include associated type bounds when cleaning foreign impl traitsManish Goregaokar-8/+38
2018-03-27rustdoc: Don't use into_iter() when cleaning impl TraitManish Goregaokar-1/+1
2018-03-27Fix collapse toggle insertions on impl with docsGuillaume Gomez-0/+3
2018-03-27add --edition flag to rustdocQuietMisdreavus-8/+33
2018-03-27Hide type declarations by defaultGuillaume Gomez-138/+165
2018-03-27Rollup merge of #49381 - withoutboats:str_unicode, r=SimonSapinkennytm-2/+0
Add is_whitespace and is_alphanumeric to str. The other methods from `UnicodeStr` are already stable inherent methods on str, but these have not been included. r? @SimonSapin
2018-03-27Rollup merge of #49333 - GuillaumeGomez:link-assoc-const, r=QuietMisdreavuskennytm-8/+6
Fix impl assoc constant link not working Fixes #49323. r? @QuietMisdreavus
2018-03-27Fix search appearanceGuillaume Gomez-3/+20
2018-03-26Introduce a TargetTriple enum to support absolute target pathsPhilipp Oppermann-3/+12
2018-03-26Remove unnecessary trait import.boats-2/+0
2018-03-25Rollup merge of #49312 - GuillaumeGomez:fix-ie11-search, r=QuietMisdreavuskennytm-0/+7
Fix IE11 search Fixes #49263. r? @QuietMisdreavus I got this code from: https://stackoverflow.com/a/30867255/7879548
2018-03-24Fix impl assoc constant link not workingGuillaume Gomez-8/+6
2018-03-24CleanupShotaro Yamada-14/+4
2018-03-24Resolve `impl Trait` in argument positionShotaro Yamada-10/+54
2018-03-24Hide synthesized type parametersShotaro Yamada-4/+23
2018-03-23Fix rustdocSean Griffin-2/+0
2018-03-23Fix IE11 searchGuillaume Gomez-0/+7
2018-03-23Merge branch 'master' of https://github.com/Lymia/rust into rollupAlex Crichton-4/+4
2018-03-22Rollup merge of #49189 - GuillaumeGomez:fix-implied-shortcut-links, ↵kennytm-10/+10
r=QuietMisdreavus Fix automatic urls with backticks Fixes #49164. r? @QuietMisdreavus
2018-03-22Rollup merge of #49188 - memoryleak47:macro_use_doctest, r=QuietMisdreavuskennytm-0/+19
Put `#[macro_use] extern crate <crate>` before fn main() in doctests Closes #49174.