summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2017-10-26Update the book on beta to fix the print buttonCarol (Nichols || Goulding)-0/+0
Connects to #45552.
2017-10-06implement pattern-binding-modes RFCTobias Schottdorf-0/+58
See the [RFC] and [tracking issue]. [tracking issue]: https://github.com/rust-lang/rust/issues/42640 [RFC]: https://github.com/rust-lang/rfcs/blob/491e0af/text/2005-match-ergonomics.md
2017-10-06Auto merge of #44734 - mchlrhw:wip/hashmap-entry-and-then, r=BurntSushibors-0/+77
Implement `and_modify` on `Entry` ## Motivation `Entry`s are useful for allowing access to existing values in a map while also allowing default values to be inserted for absent keys. The existing API is similar to that of `Option`, where `or` and `or_with` can be used if the option variant is `None`. The `Entry` API is, however, missing an equivalent of `Option`'s `and_then` method. If it were present it would be possible to modify an existing entry before calling `or_insert` without resorting to matching on the entry variant. Tracking issue: https://github.com/rust-lang/rust/issues/44733.
2017-10-06Implement `entry_and_modify`mchlrhw-0/+77
2017-10-02update books for next releasesteveklabnik-0/+0
Also fixes some stdlib links to the reference which have changed.
2017-09-30Docs: Add trace_macros! to unstable bookDanilo Bargen-0/+39
2017-09-22Add support for `..=` syntaxAlex Burka-2/+2
Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book
2017-09-19Auto merge of #44620 - zackmdavis:rfc_1940_housekeeping, r=nikomatsakisbors-0/+30
RFC 1940 housekeeping * move test to own directory, as requested in https://github.com/rust-lang/rust/issues/43302#issuecomment-329579185 * exercise trait methods in test * unstable book section r? @nikomatsakis
2017-09-19Auto merge of #44026 - QuietMisdreavus:trimmed-std, r=steveklabnikbors-0/+24
hide internal types/traits from std docs via new #[doc(masked)] attribute Fixes #43701 (hopefully for good this time) This PR introduces a new parameter to the `#[doc]` attribute that rustdoc looks for on `extern crate` statements. When it sees `#[doc(masked)]` on such a statement, it hides traits and types from that crate from appearing in either the "Trait Implementations" section of many type pages, or the "Implementors" section of trait pages. This is then applied to the `libc`/`rand`/`compiler_builtins` imports in libstd to prevent those crates from creating broken links in the std docs. Like in #43348, this also introduces a feature gate, `doc_masked`, that controls the use of this parameter. To view the std docs generated with this change, head to https://tonberry.quietmisdreavus.net/std-43701/std/index.html.
2017-09-18Rollup merge of #44640 - budziq:stabilize_splice, r=dtolnayAlex Crichton-6/+5
Stabilized vec_splice and modified splice tracking issue This stabilizes the vec_splice (Vec part of splice RFC) Fixes #32310.
2017-09-17Rollup merge of #44595 - budziq:stabilize_compiler_fences, r=alexcrichtonTim Neumann-106/+0
stabilized compiler_fences (fixes #41091) I did not know what to proceed with "unstable-book" entry. The feature would no longer be unstable so I have deleted it. If it was the wrong call I'll revert it (unfortunately his case is not described in the CONTRIBUTING.md).
2017-09-17Updated tracking issue for String::splice and its unstable-book entryMichal Budzynski-4/+3
2017-09-17stabilized vec_splice (fixes #32310)Michal Budzynski-3/+3
2017-09-16stabilized iterator_for_each (closes #42986)Michal Budzynski-17/+0
updated clippy and rls as it uses the iterator_for_each
2017-09-16stabilized compiler_fences (fixes #41091)Michal Budzynski-106/+0
2017-09-15unstable book section for `fn_must_use`Zack M. Davis-0/+30
2017-09-15Auto merge of #43949 - GuillaumeGomez:compile_fail_stable, r=alexcrichtonbors-8/+33
Compile fail stable Since #30726, we never made the `compile_fail` flag nor the error code check stable. I think it's time to change this fact. r? @alexcrichton
2017-09-12Auto merge of #44413 - est31:move_man, r=nikomatsakisbors-0/+433
Move the man directory to a subdirectory There is no reason it should be in the top directory.
2017-09-08Move the man directory to a subdirectoryest31-0/+433
There is no reason it should be in the top directory.
2017-09-05remove tests for doc(masked)QuietMisdreavus-16/+0
2017-09-05update `doc_masked` docs and tracking issueQuietMisdreavus-2/+5
2017-09-05add feature gate doc_masked and testsQuietMisdreavus-0/+37
2017-09-05use - for unstable book filenamesJon Gjengset-0/+0
2017-09-05Add or_default to Entry APIsJon Gjengset-0/+13
2017-09-03Add precision for rustdoc block codesGuillaume Gomez-0/+13
2017-09-03Add compile_fail documentationGuillaume Gomez-8/+20
2017-09-01Fix unstable book exampleMatt Ickstadt-2/+4
2017-09-01Implement RFC 1925Matt Ickstadt-0/+21
2017-08-30Rollup merge of #44172 - mattico:patch-2, r=frewsxcvAlex Crichton-1/+1
Fix link in unstable book entry for Generators
2017-08-30Rollup merge of #44044 - mattico:string-splice-return, r=dtolnayAlex Crichton-2/+1
Remove Splice struct return value from String::splice The implementation is now almost identical to the one in the RFC. Fixes #44038 cc #32310
2017-08-29Fix link in unstable book entry for GeneratorsMatt Ickstadt-1/+1
2017-08-26Remove Splice struct return value from String::spliceMatt Ickstadt-2/+1
2017-08-17Merge remote-tracking branch 'origin/master' into genAlex Crichton-23/+0
2017-08-17Rollup merge of #43914 - steveklabnik:update-books, r=QuietMisdreavusCorey Farwell-0/+0
Update the books for next release
2017-08-16Update the books for next releasesteveklabnik-0/+0
2017-08-16Stabilize rvalue promotion to 'static.Eduard-Mihai Burtescu-23/+0
2017-08-16Merge remote-tracking branch 'origin/master' into genAlex Crichton-33/+111
2017-08-15Auto merge of #43500 - murarth:string-retain, r=alexcrichtonbors-0/+23
Add method `String::retain` Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool` and reducing the string to only characters for which the predicate returns `true`.
2017-08-15Auto merge of #43863 - steveklabnik:ship-the-rustdoc-book, r=frewsxcvbors-32/+4
Ship the rustdoc book Fixes #42322, as it's the last step. Blocked on https://github.com/rust-lang/rust/pull/43790, though they will not conflict. r? @rust-lang/docs
2017-08-14Add method `String::retain`Murarth-0/+23
Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool` and reducing the string to only characters for which the predicate returns `true`.
2017-08-14Merge remote-tracking branch 'origin/master' into genAlex Crichton-5/+458
2017-08-14Remove plugins chaptersteveklabnik-32/+2
we don't want to support plugins
2017-08-14Rollup merge of #43790 - steveklabnik:rustdoc-passes, r=QuietMisdreavusCorey Farwell-1/+84
Write the "passes" chapter of the rustdoc book cc #42322 r? @rust-lang/docs
2017-08-14Write the "passes" chapter of the rustdoc booksteveklabnik-1/+84
cc #42322
2017-08-14link to the rustdoc book from the main docssteveklabnik-0/+2
2017-08-13Auto merge of #43348 - kennytm:fix-24658-doc-every-platform, r=alexcrichtonbors-0/+42
Expose all OS-specific modules in libstd doc. 1. Uses the special `--cfg dox` configuration passed by rustbuild when running `rustdoc`. Changes the `#[cfg(platform)]` into `#[cfg(any(dox, platform))]` so that platform-specific API are visible to rustdoc. 2. Since platform-specific implementations often won't compile correctly on other platforms, `rustdoc` is changed to apply `everybody_loops` to the functions during documentation and doc-test harness. 3. Since platform-specific code are documented on all platforms now, it could confuse users who found a useful API but is non-portable. Also, their examples will be doc-tested, so must be excluded when not testing on the native platform. An undocumented attribute `#[doc(cfg(...))]` is introduced to serve the above purposed. Fixes #24658 (Does _not_ fully implement #1998).
2017-08-12Auto merge of #43812 - steveklabnik:rustdoc-doc-tests, r=QuietMisdreavusbors-1/+237
rustdoc doc tests This is mostly adapted from the book v1's chapter. cc https://github.com/rust-lang/rust/issues/42322 r? @rust-lang/docs
2017-08-11rustdoc doc testssteveklabnik-1/+237
2017-08-11address review feedbacksteveklabnik-4/+10
2017-08-10ignore more thingssteveklabnik-4/+4