summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2017-09-24Updated tracking issue for String::splice and its unstable-book entryMichal Budzynski-4/+3
2017-09-24stabilized vec_splice (fixes #32310)Michal Budzynski-3/+3
2017-09-24stabilized compiler_fences (fixes #41091)Michal Budzynski-106/+0
2017-09-24stabilized iterator_for_each (closes #42986)Michal Budzynski-17/+0
updated clippy and rls as it uses the iterator_for_each
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-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-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
2017-08-10review feedbacksteveklabnik-4/+12
2017-08-10doc doc(inline) and doc(no_inline)steveklabnik-1/+57
2017-08-10Document the doc attributesteveklabnik-4/+109
cc #42322
2017-08-10Implemented #[doc(cfg(...))].kennytm-0/+42
This attribute has two effects: 1. Items with this attribute and their children will have the "This is supported on **** only" message attached in the documentation. 2. The items' doc tests will be skipped if the configuration does not match.
2017-08-05Bump 'src/doc/book' git submodule.Corey Farwell-0/+0
Primarily to pick up this change: https://github.com/rust-lang/book/pull/866 ...to move this PR forward: https://github.com/rust-lang/rust/pull/43641
2017-08-03Update nomiconSimon Sapin-0/+0
2017-07-26Auto merge of #43373 - alexcrichton:stabilize-1.20.0, r=aturonbors-20/+0
Stabilize more APIs for the 1.20.0 release In addition to the few stabilizations that have already landed, this cleans up the remaining APIs that are in `final-comment-period` right now to be stable by the 1.20.0 release
2017-07-26Rollup merge of #42959 - SimonSapin:nonzero-checked, r=sfacklerMark Simulacrum-0/+0
Make the "main" constructors of NonZero/Shared/Unique return Option Per discussion in https://github.com/rust-lang/rust/issues/27730#issuecomment-303939441. This is a breaking change to unstable APIs. The old behavior is still available under the name `new_unchecked`. Note that only that one can be `const fn`, since `if` is currently not allowed in constant contexts. In the case of `NonZero` this requires adding a new `is_zero` method to the `Zeroable` trait. I mildly dislike this, but it’s not much worse than having a `Zeroable` trait in the first place. `Zeroable` and `NonZero` are both unstable, this can be reworked later.
2017-07-25Stabilize the `compile_error_macro` featureAlex Crichton-20/+0
Stabilizes: * `compile_error!` as a macro defined by rustc Closes #40872
2017-07-22Rename {NonZero,Shared,Unique}::new to new_uncheckedSimon Sapin-0/+0
2017-07-20Document use of `compiler_builtins` with `no_std` binariesJoe Ranweiler-0/+43
The docs for the `compiler_builtins_lib` library feature were removed in #42899. But, though the `compiler_builtins` library has been migrated out-of-tree, the feature remains, and is needed to use the stand-alone crate. We reintroduce the docs for the feature, and add a reference to them when describing how to create a `no_std` executable.
2017-07-14Update the books.steveklabnik-0/+0
2017-07-10Test src/doc once moreMark Simulacrum-3/+3
2017-07-06remove associated_consts feature gateSean McArthur-85/+0
2017-07-06Auto merge of #42899 - alexcrichton:compiler-builtins, r=nikomatsakisbors-35/+0
Switch to rust-lang-nursery/compiler-builtins This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-07-06Auto merge of #42727 - alexcrichton:allocators-new, r=eddybbors-119/+78
rustc: Implement the #[global_allocator] attribute This PR is an implementation of [RFC 1974] which specifies a new method of defining a global allocator for a program. This obsoletes the old `#![allocator]` attribute and also removes support for it. [RFC 1974]: https://github.com/rust-lang/rfcs/pull/1974 The new `#[global_allocator]` attribute solves many issues encountered with the `#![allocator]` attribute such as composition and restrictions on the crate graph itself. The compiler now has much more control over the ABI of the allocator and how it's implemented, allowing much more freedom in terms of how this feature is implemented. cc #27389
2017-07-05rustc: Implement the #[global_allocator] attributeAlex Crichton-119/+78
This PR is an implementation of [RFC 1974] which specifies a new method of defining a global allocator for a program. This obsoletes the old `#![allocator]` attribute and also removes support for it. [RFC 1974]: https://github.com/rust-lang/rfcs/pull/197 The new `#[global_allocator]` attribute solves many issues encountered with the `#![allocator]` attribute such as composition and restrictions on the crate graph itself. The compiler now has much more control over the ABI of the allocator and how it's implemented, allowing much more freedom in terms of how this feature is implemented. cc #27389
2017-07-05Merge remote-tracking branch 'origin/master' into proc_macro_apiAlex Crichton-54/+49
2017-07-05Switch to rust-lang-nursery/compiler-builtinsAlex Crichton-35/+0
This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-07-02Auto merge of #43010 - stjepang:stabilize-sort-unstable, r=alexcrichtonbors-40/+0
Stabilize feature sort_unstable Closes #40585
2017-07-02Documentationest31-2/+4
2017-07-02Stabilize feature sort_unstableStjepan Glavina-40/+0
2017-06-30Stabilize 'more_io_inner_methods' feature.Sergio Benitez-11/+0
2017-06-30Track `iterator_for_each` in #42986Josh Stone-2/+2
2017-06-30Auto merge of #42782 - cuviper:iterator_for_each, r=alexcrichtonbors-0/+17
Add `Iterator::for_each` This works like a `for` loop in functional style, applying a closure to every item in the `Iterator`. It doesn't allow `break`/`continue` like a `for` loop, nor any other control flow outside the closure, but it may be a more legible style for tying up the end of a long iterator chain. This was tried before in #14911, but nobody made the case for using it with longer iterators. There was also `Iterator::advance` at that time which was more capable than `for_each`, but that no longer exists. The `itertools` crate has `Itertools::foreach` with the same behavior, but thankfully the names won't collide. The `rayon` crate also has a `ParallelIterator::for_each` where simple `for` loops aren't possible. > I really wish we had `for_each` on seq iterators. Having to use a > dummy operation is annoying. - [@nikomatsakis][1] [1]: https://github.com/nikomatsakis/rayon/pull/367#issuecomment-308455185
2017-06-29Give a tracking-issue number for unsized tuple coercion.Masaki Hara-2/+2
2017-06-29Move unsized_tuple_coercion behind a feature gate.Masaki Hara-0/+27
2017-06-28Fix link referenceAndreas Sommer-1/+1
2017-06-26Implement `quote!` and other `proc_macro` API.Jeffrey Seyfried-0/+7
2017-06-21Rollup merge of #42620 - wesleywiser:compile_error, r=brsonCorey Farwell-0/+20
Add compile_error! Related to #40872
2017-06-20Add `Read::initializer`.Steven Fackler-0/+7
This is an API that allows types to indicate that they can be passed buffers of uninitialized memory which can improve performance.