about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2018-11-09don't inline `pub use some_crate` unless directly asked toQuietMisdreavus-0/+3
2018-11-03Added section to Unstable Book.Alexander Regueiro-0/+34
2018-11-02Auto merge of #54543 - GuillaumeGomez:top-level-index, r=QuietMisdreavusbors-11/+24
Add index page argument @Mark-Simulacrum: I might need some help from you: in bootstrap, I want to add an argument (a new flag added into `rustdoc`) in order to generate the current index directly when `rustdoc` is documenting the `std` lib. However, my change in `bootstrap` didn't do it and I assume it must be moved inside the `Std` struct. But there, I don't see how to pass it to `rustdoc` through `cargo`. Did I miss anything? r? @QuietMisdreavus
2018-11-02Move doc_alias docGuillaume Gomez-16/+16
2018-11-02Add documentation for index-page featuresGuillaume Gomez-0/+13
2018-10-24Reflect by-value object safety in the unstable book.Masaki Hara-4/+2
2018-10-20update books for the next releaseSteve Klabnik-0/+0
2018-10-16[Rustc Book] Quotes around value in --cfg exampleHavvy (Ryan Scheel)-1/+1
2018-10-15[Rustc Book] Explain --cfg's argumentsHavvy (Ryan Scheel)-0/+5
2018-10-14Unused result warning: "X which must" ↦ "X that must"varkor-3/+3
2018-10-10Rollup merge of #54870 - flip1995:stabilize_tool_lints, r=ManishearthManish Goregaokar-35/+0
Fixes #47311. r? @nrc
2018-10-10Rollup merge of #54862 - Havvy:cfg_attr_multi, r=petrochenkovManish Goregaokar-0/+20
Fixes #47311. r? @nrc
2018-10-09Remove unstable-book documentationflip1995-35/+0
2018-10-07cfg-attr-multi: Change issue number to actual tracking issueHavvy (Ryan Scheel)-2/+2
2018-10-08Auto merge of #54609 - kzys:404-search, r=GuillaumeGomezbors-21/+54
Add the library search box on the 404 page It actually has a link to search already, but it would be better to have the search "box" as like index.md to be consistent. <style> can be shared with index.md, but these pages currently use https://doc.rust-lang.org/rust.css directly. Fixes #14572.
2018-10-07cfg_attr_multi: Feature gateHavvy (Ryan Scheel)-0/+20
2018-10-05dro -> duckduckgoKazuyoshi Kato-2/+2
dro means "doc.rust-lang.org", but it is too cryptic.
2018-10-01Introduce language items for `Arc` and `Rc`.David Wood-0/+2
This commit introduces language items for `Arc` and `Rc` so that types can later be checked to be `Arc` or `Rc` in the NLL borrow checker. The `lang` attribute is currently limited to `stage1` as it requires a compiler built with knowledge of the expected language items.
2018-09-30Unify the search boxesKazuyoshi Kato-24/+40
Instead of having the standard library search and DuckDuckGo search. This change merges two of them, with radio buttons.
2018-09-26Add the library search box on the 404 pageKazuyoshi Kato-15/+32
It actually has a link to search already, but it would be better to have the search "box" as like index.md to be consistent. <style> can be shared with index.md, but these pages currently use https://doc.rust-lang.org/rust.css directly. Fixes #14572.
2018-09-26docs: this llvm feature only supports the ELF object formatJorge Aparicio-0/+4
2018-09-26unstable-book: recommend an INFO sectionJorge Aparicio-8/+18
that makes the output .stack_sizes section non-allocatable when linking with either GNU LD or LLD
2018-09-26document this feature in the unstable bookJorge Aparicio-0/+153
2018-09-25Auto merge of #54575 - pietroalbini:rollup, r=pietroalbinibors-3/+21
Rollup of 12 pull requests Successful merges: - #53518 (Add doc for impl From in char_convert) - #54058 (Introduce the partition_dedup/by/by_key methods for slices) - #54281 (Search box) - #54368 (Reduce code block sides padding) - #54498 (The project moved under the Mozilla umbrella) - #54518 (resolve: Do not block derive helper resolutions on single import resolutions) - #54522 (Fixed three small typos.) - #54529 (aarch64-pc-windows-msvc: Don't link libpanic_unwind to libtest.) - #54537 (Rename slice::exact_chunks() to slice::chunks_exact()) - #54539 (Fix js error) - #54557 (incr.comp.: Don't automatically enable -Zshare-generics for incr. comp. builds.) - #54558 (Improvements to finding LLVM's FileCheck) Failed merges: r? @ghost
2018-09-25Rollup merge of #54498 - sylvestre:patch-1, r=frewsxcvPietro Albini-1/+1
The project moved under the Mozilla umbrella
2018-09-25Rollup merge of #54281 - GuillaumeGomez:search-box, r=QuietMisdreavusPietro Albini-2/+20
Search box Follow up of #54244. r? @QuietMisdreavus <img width="1440" alt="screen shot 2018-09-16 at 21 23 05" src="https://user-images.githubusercontent.com/3050060/45600056-cbf93380-b9f6-11e8-904a-d76ddbc5ed69.png">
2018-09-25Auto merge of #53542 - alexreg:impl-trait-in-bindings, r=cramertjbors-0/+28
`impl trait` in bindings (feature: impl-trait-existential-types) This PR enables `impl Trait` syntax (opaque types) to be used in bindings, e.g. * `let foo: impl Clone = 1;` * `static foo: impl Clone = 2;` * `const foo: impl Clone = 3;` This is part of [RFC 2071](https://github.com/rust-lang/rfcs/blob/master/text/2071-impl-trait-existential-types.md) ([tracking issue](https://github.com/rust-lang/rust/issues/34511)), but exists behind the separate feature gate `impl_trait_in_bindings`. CC @cramertj @oli-obk @eddyb @Centril @varkor
2018-09-25Auto merge of #53693 - scottmcm:marker-trait-attribute, r=nikomatsakisbors-0/+33
Support an explicit annotation for marker traits From the tracking issue for rust-lang/rfcs#1268: > It seems obvious that we should make a `#[marker]` annotation. ~ https://github.com/rust-lang/rust/issues/29864#issuecomment-368959441 This PR allows you to put `#[marker]` on a trait, at which point: - [x] The trait must not have any items ~~All of the trait's items must have defaults~~ - [x] Any impl of the trait must be empty (not override any items) - [x] But impls of the trait are allowed to overlap r? @nikomatsakis
2018-09-25Added section to Unstable Book.Alexander Regueiro-0/+28
2018-09-23and llvm has https nowSylvestre Ledru-1/+1
2018-09-23The project moved under the Mozilla umbrellaSylvestre Ledru-1/+1
2018-09-22Auto merge of #54457 - pietroalbini:rollup, r=pietroalbinibors-3/+17
Rollup of 16 pull requests Successful merges: - #53652 (define copy_within on slices) - #54261 (Make `dyn` a keyword in the 2018 edition) - #54280 (remove (more) CAS API from Atomic* types where not natively supported) - #54323 (rustbuild: drop color handling) - #54350 (Support specifying edition in doc test) - #54370 (Improve handling of type bounds in `bit_set.rs`.) - #54371 (add -Zui-testing to rustdoc) - #54374 (Make 'proc_macro::MultiSpan' public.) - #54402 (Use no_default_libraries for all NetBSD flavors) - #54409 (Detect `for _ in in bar {}` typo) - #54412 (add applicability to span_suggestion call) - #54413 (Add UI test for deref recursion limit printing twice) - #54415 (parser: Tweak function parameter parsing to avoid rollback on succesfull path) - #54420 (Compress `Liveness` data some more.) - #54422 (Simplify slice's first(_mut) and last(_mut) with get) - #54446 (Unify christianpoveda's emails) Failed merges: - #54058 (Introduce the partition_dedup/by/by_key methods for slices) r? @ghost
2018-09-22Rollup merge of #54350 - Munksgaard:support-edition-in-doc-test, r=steveklabnikPietro Albini-3/+17
Support specifying edition in doc test Fixes #52623 r? @QuietMisdreavus
2018-09-22Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all ↵Eduard-Mihai Burtescu-92/+0
editions.
2018-09-20Add documentation about the edition flagPhilip Munksgaard-0/+16
2018-09-20Add test for doctest edition supportPhilip Munksgaard-3/+1
2018-09-19Add marker_trait_attr to the unstable bookScott McMurray-0/+33
2018-09-18Update The Book to lateststeveklabnik-0/+0
Let's check out https://github.com/rust-lang/book/pull/1505 on nightly
2018-09-18Rollup merge of #54311 - frewsxcv:frewsxcv-readme, r=GuillaumeGomezGuillaume Gomez-32/+0
Remove README with now-out-of-date docs about docs. These docs haven't really been touched in years, and from what I tried, the `rustdoc` commands don't work. Seems like we don't need this?
2018-09-17Remove REAMDE with now-out-of-date docs about docs.Corey Farwell-32/+0
2018-09-17Improve search box displayGuillaume Gomez-2/+20
2018-09-16Rollup merge of #54244 - kzys:search-box, r=GuillaumeGomezGuillaume Gomez-0/+7
Add a small search box to seach Rust's standary library This change partially addresses #14572. No CSS doesn't look fancy but at least it is functional.
2018-09-14Add a small search box to seach Rust's standary libraryKazuyoshi Kato-0/+7
This change partially addresses #14572. No CSS doesn't look fancy but at least it is functional.
2018-09-13introduce SelfCtorF001-3/+3
2018-09-13implement feature tuple_struct_self_ctorF001-0/+33
2018-09-12Auto merge of #53793 - toidiu:ak-stabalize, r=nikomatsakisbors-67/+0
stabilize outlives requirements https://github.com/rust-lang/rust/issues/44493 r? @nikomatsakis
2018-09-12Rollup merge of #54073 - behnam:docs-1, r=frewsxcvkennytm-7/+10
docs: Use dollar sign for all bash prompts Making it consistent across the board, as most of them already use `$`. Also split one continues bash run into two, to make it easier see different runs: one with warning and another with error.
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-67/+0
Co-authored-by: nikomatsakis
2018-09-11Auto merge of #51363 - japaric:stable-used, r=cramertjbors-157/+0
stabilize #[used] closes #40289 RFC for stabilization: rust-lang/rfcs#2386 r? @Centril Where should this be documented? Currently the documentation is in the unstable book
2018-09-09remove #[used] from the unstable bookJorge Aparicio-157/+0
it'll be documented in the reference