about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2018-05-03ignore erroneous exampleHoàng Đức Hiếu-1/+1
2018-05-03fix error textHoàng Đức Hiếu-1/+1
2018-05-03doc: move incoherent_fundamental_impls to deny-by-default listingHoàng Đức Hiếu-41/+41
2018-04-30Auto merge of #48925 - zackmdavis:fn_must_stabilize, r=nikomatsakisbors-30/+0
stabilize `#[must_use]` for functions and must-use comparison operators (RFC 1940) r? @nikomatsakis
2018-04-30Auto merge of #50163 - kornelski:error, r=Kimundibors-0/+0
Bury Error::description() Second attempt of #49536 https://github.com/rust-lang/rfcs/pull/2230 The exact wording of the default implementation is still up in the air, but I think it's a detail that can be amended later.
2018-04-28stabilize `#[must_use]` for functions and must-use operatorsZack M. Davis-30/+0
This is in the matter of RFC 1940 and tracking issue #43302.
2018-04-27Rollup merge of #49707 - steveklabnik:rustc-book, r=QuietMisdreavuskennytm-0/+2512
Add "the Rustc book" This PR introduces a new book into the documentation, "The rustc book". We already have books for Cargo, and for Rustdoc, rustc should have some too. This book is focused on *users* of rustc, and provides a nice place to write documentation for users. I haven't put content here, but plan on scaffolding it out very soon, and wanted this PR open for a few discussions first. One of those is "what exactly should said TOC be?" I plan on having a proposed one up tomorrow, but figured I'd let people know to start thinking about it now. The big one is that we also will want to put https://github.com/rust-lang-nursery/rustc-guide in-tree as well, and the naming is... tough. I'm proposing: * doc.rust-lang.org/rustc is "The Rustc book", to mirror the other tools' books. * doc.rust-lang.org/rustc-contribution is "The Rustc contribution guide", and contains that book @nikomatsakis et al, any thoughts on this? I'm not attached to it in particular, but had to put something together to get this discussion going. I think mirroring the other tools is a good idea for this work, but am not sure where exactly that leaves yours. Fixes https://github.com/rust-docs/team/issues/11
2018-04-25Update book submodule to pass linkchecker testKornel-0/+0
2018-04-24more nitssteveklabnik-3/+3
2018-04-23review nitssteveklabnik-9/+8
2018-04-22Add doc about doc alias featureGuillaume Gomez-0/+39
2018-04-17stabilize `slice_rsplit` featuretinaun-10/+0
2018-04-17Rollup merge of #49994 - frewsxcv:frewsxcv-doc-tests, r=QuietMisdreavuskennytm-19/+19
Remove unnecessary indentation in rustdoc book codeblock. None
2018-04-16write docs for targetssteveklabnik-0/+38
2018-04-16fill out contributingsteveklabnik-0/+5
2018-04-16fill out command line argumentssteveklabnik-2/+61
2018-04-16Remove unnecessary indentation in rustdoc book codeblock.Corey Farwell-19/+19
2018-04-16Auto merge of #49956 - QuietMisdreavus:rustdoc-codegen, r=GuillaumeGomezbors-0/+25
rustdoc: port the -C option from rustc Blocked on https://github.com/rust-lang/rust/pull/49864. The included test won't work without those changes, so this PR includes those commits as well. When documenting items that require certain target features, it helps to be able to force those target features into existence. Rather than include a flag just to parse those features, i instead decided to port the `-C` flag from rustc in its entirety. It takes the same parameters, because it runs through the same parsing function. This has the added benefit of being able to control the codegen of doctests as well. One concern i have with the flag is that i set it to stable here. My rationale is that it is a direct port of functionality on rustc that is currently stable, used only in mechanisms that it is originally used for. If needed, i can set it back to be unstable.
2018-04-14Replace remaining uses of deprecated std::heap with std::allocMike Hommey-1/+1
2018-04-13add -C to the rustdoc bookQuietMisdreavus-0/+25
2018-04-12Rename alloc::Void to alloc::OpaqueSimon Sapin-3/+3
2018-04-12Use NonNull<Void> instead of *mut u8 in the Alloc traitMike Hommey-0/+1
Fixes #49608
2018-04-12Use the GlobalAlloc trait for #[global_allocator]Simon Sapin-4/+4
2018-04-12Auto merge of #49371 - scottmcm:catch-wrapping, r=nikomatsakisbors-4/+4
Add ok-wrapping to catch blocks, per RFC Updates the `catch{}` lowering to wrap the result in `Try::from_ok`. r? @nikomatsakis Fixes #41414 Fixes #43818
2018-04-12Auto merge of #48528 - bitshifter:repr_packed, r=eddybbors-0/+8
Implementation of `#[repr(packed(n))]` RFC 1399. Tracking issue https://github.com/rust-lang/rust/issues/33158.
2018-04-12Deprecate the std_unicode crateSimon Sapin-1/+1
2018-04-11Implementation of `#[repr(packed(n))]` RFC 1399.Cameron Hart-0/+8
2018-04-10Fix the unstable book to account for ok-wrappingScott McMurray-4/+4
2018-04-10add codegen options sectionsteveklabnik-0/+208
2018-04-09fix testssteveklabnik-27/+29
2018-04-09more lintssteveklabnik-46/+1035
2018-04-09document deny by default lintssteveklabnik-12/+237
2018-04-09add a lot of text about lintssteveklabnik-0/+824
2018-04-09add targets to TOCsteveklabnik-0/+6
2018-04-09write 'what is rustc'steveklabnik-0/+67
2018-04-09write headings for command line argumentssteveklabnik-2/+58
2018-04-09fix authorship in book.tomlsteveklabnik-1/+1
2018-04-09Add a TOCsteveklabnik-3/+23
2018-04-09update doc index to link to the rustc booksteveklabnik-0/+4
2018-04-09initialize the rustc booksteveklabnik-0/+10
2018-04-07Using X headings instead of 0.X #49739Pulkit Goyal-12/+12
2018-04-05Rollup merge of #49628 - steveklabnik:learn-use-master, r=QuietMisdreavuskennytm-46/+63
Re-write the documentation index The docs team has decided that we're framing resources in three ways: "learning Rust," "using Rust," "mastering Rust." This is a more useful split than "beginner/intermediate/advanced." As we add more resources in the future, we expect "using Rust" to grow. "the bookshelf" as a concept is great, but isn't really organized along these lines. As such, this reorganizes the docs along these lines.
2018-04-03Re-write the documentation indexsteveklabnik-46/+63
The docs team has decided that we're framing resources in three ways: "learning Rust," "using Rust," "mastering Rust." This is a more useful split than "beginner/intermediate/advanced." As we add more resources in the future, we expect "using Rust" to grow. "the bookshelf" as a concept is great, but isn't really organized along these lines. As such, this reorganizes the docs along these lines.
2018-04-02Remove splice page from unstable book.Thayne McCombs-22/+0
2018-04-01Rollup merge of #49451 - QuietMisdreavus:epoch-doctests, r=GuillaumeGomezMark Simulacrum-0/+13
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-03-30Rollup merge of #49445 - GuillaumeGomez:light-theme, r=QuietMisdreavuskennytm-3/+3
Rename main theme into light theme r? @QuietMisdreavus
2018-03-29Rename main theme into light themeGuillaume Gomez-3/+3
2018-03-28Auto merge of #49460 - kennytm:rollup, r=kennytmbors-23/+0
Rollup of 12 pull requests - Successful merges: #49243, #49329, #49364, #49400, #49405, #49427, #49428, #49429, #49439, #49442, #49444, #49452 - Failed merges:
2018-03-28Rollup merge of #49243 - murarth:stabilize-retain, r=BurntSushikennytm-23/+0
Stabilize method `String::retain` Closes #43874
2018-03-28Stabilize match_default_bindingsTaylor Cramer-58/+0
This includes a submodule update to rustfmt in order to allow a stable feature declaration.