about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2018-05-15Rollup merge of #50594 - sanxiyn:man-print, r=steveklabnikGuillaume Gomez-1/+1
Update the man page with additional --print options `\:` is a `groff` for `<wbr>` to get better line breaking.
2018-05-15Turn deprecation lint `legacy_imports` into a hard errorVadim Petrochenkov-37/+0
2018-05-13stabilize :lifetimeAlex Burka-14/+0
2018-05-13Macros: Add a 'literal' fragment specifierDan Aloni-0/+17
Implements RFC 1576. See: https://github.com/rust-lang/rfcs/blob/master/text/1576-macros-literal-matcher.md Changes are mostly in libsyntax, docs, and tests. Feature gate is enabled for 1.27.0. Many thanks to Vadim Petrochenkov for following through code reviews and suggestions. Example: ````rust macro_rules! test_literal { ($l:literal) => { println!("literal: {}", $l); }; ($e:expr) => { println!("expr: {}", $e); }; } fn main() { let a = 1; test_literal!(a); test_literal!(2); test_literal!(-3); } ``` Output: ``` expr: 1 literal: 2 literal: -3 ```
2018-05-10Update the man page with additional --print optionsSeo Sanghyeon-1/+1
2018-05-08Auto merge of #50390 - hdhoang:46205_deny_by_default, r=nikomatsakisbors-41/+41
lint: deny incoherent_fundamental_impls by default Warn the ecosystem of the pending intent-to-disallow in #49799. There are 4 ICEs on my machine, look unrelated (having happened before in https://github.com/rust-lang/rust/issues/49146#issuecomment-384473523) ```rust thread 'main' panicked at 'assertion failed: position <= slice.len()', libserialize/leb128.rs:97:1 ``` ``` [run-pass] run-pass/allocator/xcrate-use2.rs [run-pass] run-pass/issue-12133-3.rs [run-pass] run-pass/issue-32518.rs [run-pass] run-pass/trait-default-method-xc-2.rs ``` r? @nikomatsakis
2018-05-05Update books for the next release.Corey Farwell-0/+0
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-05-02Add tool_attributes feature to unstable bookSeiichi Uchida-0/+26
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.