about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2018-08-26Auto merge of #53619 - japaric:panic-handler, r=SimonSapinbors-3/+3
add #[panic_handler]; deprecate #[panic_implementation] r? @SimonSapin cc #44489
2018-08-24Auto merge of #53662 - kennytm:rollup, r=kennytmbors-0/+0
Rollup of 16 pull requests Successful merges: - #53311 (Window Mutex: Document that we properly initialize the SRWLock) - #53503 (Discourage overuse of mem::forget) - #53545 (Fix #50865: ICE on impl-trait returning functions reaching private items) - #53559 (add macro check for lint) - #53562 (Lament the invincibility of the Turbofish) - #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()) - #53592 (docs: minor stylistic changes to str/string docs) - #53594 (Update RELEASES.md to include clippy-preview) - #53600 (Fix a grammatical mistake in "expected generic arguments" errors) - #53614 (update nomicon and book) - #53617 (tidy: Stop requiring a license header) - #53618 (Add missing fmt examples) - #53636 (Prefer `.nth(n)` over `.skip(n).next()`.) - #53644 (Use SmallVec for SmallCStr) - #53664 (Remove unnecessary closure in rustc_mir/build/mod.rs) - #53666 (Added rustc_codegen_llvm to compiler documentation.)
2018-08-24Rollup merge of #53614 - RalfJung:nomicon, r=kennytmkennytm-0/+0
update nomicon and book
2018-08-23Stabilize 'attr_literals' feature.Sergio Benitez-30/+0
2018-08-23update the unstable bookJorge Aparicio-3/+3
2018-08-23Auto merge of #52602 - scottmcm:tryblock-expr, r=nikomatsakisbors-7/+9
Implement try block expressions I noticed that `try` wasn't a keyword yet in Rust 2018, so... ~~Fix​es https://github.com/rust-lang/rust/issues/52604~~ That was fixed by PR https://github.com/rust-lang/rust/pull/53135 cc https://github.com/rust-lang/rust/issues/31436 https://github.com/rust-lang/rust/issues/50412
2018-08-23Stabilize a few secondary macro featuresVadim Petrochenkov-26/+0
`tool_attributes`, `proc_macro_path_invoc`, partially `proc_macro_gen`
2018-08-22update nomicon and bookRalf Jung-0/+0
2018-08-21Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkorkennytm-9/+9
Fix typos found by codespell.
2018-08-19Rename `catch_expr` feature to `try_blocks`Scott McMurray-3/+3
2018-08-19Fix the unstable bookScott McMurray-5/+7
I ignored the code block as I didn't see a way to run the doctest in 2018 -- I noticed the edition guide is also not testing its 2018 code snippits.
2018-08-19Stabilize macro_vis_matcherJakub Kozlowski-15/+0
2018-08-19Fix typos found by codespell.Matthias Krüger-9/+9
2018-08-19Remove a now-unnecessary paragraph.Masaki Hara-19/+0
The paragraph described a case where we can't optimize away repetitive dynamic stack allocation. However, as arielb1 pointed out, it can actually optimizable by dynamically delaying the stack unwinding.
2018-08-19Update the unstable book regarding [e; dyn n].Masaki Hara-3/+3
2018-08-19Add an unstable-book article about unsized_locals.Masaki Hara-0/+199
2018-08-18Auto merge of #53324 - alexreg:self_in_typedefs, r=eddybbors-0/+24
`Self` in type definitions (self_in_typedefs) This implements the [`self_in_typedefs` feature](https://github.com/rust-lang/rfcs/blob/master/text/2300-self-in-typedefs.md) ([tracking issue 49303](https://github.com/rust-lang/rust/issues/49303)). r? @eddyb CC @Centril
2018-08-18Added page for feature to unstable book.Alexander Regueiro-0/+24
2018-08-17rustc_resolve: don't allow paths starting with `::crate`.Eduard-Mihai Burtescu-8/+3
2018-08-17Rollup merge of #53395 - varkor:__Nonexhaustive-to-non_exhaustive, r=shepmasterkennytm-10/+0
Use #[non_exhaustive] on internal enums This replaces `__Nonexhaustive` variants (and variants thereof) with `#[non_exhaustive]`. These were mostly unstable previously, with the exception of the `cloudabi` enums and `Level` in proc_macro: these were `#[doc(hidden)]`, so clearly intended not to be used directly. It should be safe to replace all of these.
2018-08-15Remove outdated Unstable Book sectionsvarkor-10/+0
2018-08-13review commentEsteban Küber-1/+1
2018-08-11Extend documentation of `rustc_on_unimplemented`Esteban Küber-2/+95
2018-08-01Rollup merge of #52831 - dsciarra:rm-ref-to-author-file, r=alexcrichtonPietro Albini-1/+1
remove references to AUTHORS.txt file Rust does not ship an AUTHORS.txt file anymore.
2018-07-31Auto merge of #52863 - steveklabnik:update-books, r=Mark-Simulacrumbors-0/+0
update books for new release r? @Mark-Simulacrum
2018-07-30update books for new releasesteveklabnik-0/+0
2018-07-30Remove references to AUTHORS.txt fileDonato Sciarra-1/+1
Refer instead to thanks page.
2018-07-28Auto merge of #52711 - eddyb:unsized-manuallydrop, r=nikomatsakisbors-0/+0
Change ManuallyDrop<T> to a lang item. This PR implements the approach @RalfJung proposes in https://internals.rust-lang.org/t/pre-rfc-unions-drop-types-and-manuallydrop/8025 (lang item `struct` instead of `union`). A followup PR can easily solve #47034 as well, by just adding a few `?Sized` to `libcore/mem.rs`. r? @nikomatsakis
2018-07-27uodate reference again to hopefully fix all link issuesRalf Jung-0/+0
2018-07-27add section in booktoidiu-0/+45
2018-07-27update reference to fix linksRalf Jung-0/+0
2018-07-23update nightly bookmark-2/+4
2018-07-18Fix links in rustdoc book.Eric Huss-2/+2
Due to a change in how mdbook generates section anchors, headers with non-alphabetic characters now start with "a".
2018-07-17Rollup merge of #52338 - RalfJung:miri, r=oli-obkkennytm-241/+0
update miri
2018-07-16rustc: Stabilize much of the `proc_macro` featureAlex Crichton-241/+0
This commit stabilizes some of the `proc_macro` language feature as well as a number of APIs in the `proc_macro` crate as [previously discussed][1]. This means that on stable Rust you can now define custom procedural macros which operate as attributes attached to items or `macro_rules!`-like bang-style invocations. This extends the suite of currently stable procedural macros, custom derives, with custom attributes and custom bang macros. Note though that despite the stabilization in this commit procedural macros are still not usable on stable Rust. To stabilize that we'll need to stabilize at least part of the `use_extern_macros` feature. Currently you can define a procedural macro attribute but you can't import it to call it! A summary of the changes made in this PR (as well as the various consequences) is: * The `proc_macro` language and library features are now stable. * Other APIs not stabilized in the `proc_macro` crate are now named under a different feature, such as `proc_macro_diagnostic` or `proc_macro_span`. * A few checks in resolution for `proc_macro` being enabled have switched over to `use_extern_macros` being enabled. This means that code using `#![feature(proc_macro)]` today will likely need to move to `#![feature(use_extern_macros)]`. It's intended that this PR, once landed, will be followed up with an attempt to stabilize a small slice of `use_extern_macros` just for procedural macros to make this feature 100% usable on stable. [1]: https://internals.rust-lang.org/t/help-stabilize-a-subset-of-macros-2-0/7252
2018-07-16update nomiconRalf Jung-0/+0
2018-07-14Update lint plugin sample code.eonil-0/+2
2018-07-06Auto merge of #52018 - flip1995:rfc2103, r=oli-obkbors-0/+35
Implementation of tool lints. Tracking issue: #44690
2018-07-04Auto merge of #51803 - lucasem:rustdoc-code-hash-escape, r=GuillaumeGomezbors-0/+17
rustdoc codeblock hash escape So that docstring text such as the following (in a code block) can be created ergonomically: ```rust let s = " foo # bar baz "; ``` Such code in a docstring hide the <code>&nbsp;&nbsp;&nbsp;&nbsp;# bar</code> line. Previously, using two consecutive hashes <code>&nbsp;&nbsp;&nbsp;&nbsp;## bar</code> would turn the line into _shown_ `# bar`, losing the leading whitespace. A line of code like <code>&nbsp;&nbsp;&nbsp;&nbsp;# bar</code> (such as in the example above) **could not be represented** in the docstring text. This commit makes the two consecutive hashes not also trim the leading whitespace — the two hashes simply **escape** into a single hash and do not hide the line, leaving the rest of that line unaffected. The new docstring text to achieve the above code block is: ```rust /// ``` /// let s = " /// foo /// ## bar /// baz /// "; /// ``` ```
2018-07-04rustdoc book on codeblock hash escapingLucas Morales-0/+17
2018-07-04Unstable book documentation of tool lintsflip1995-0/+35
2018-06-26Auto merge of #49469 - Nokel81:allow-irrefutable-let-patterns, r=nikomatsakisbors-0/+28
Implementation of RFC 2086 - Allow Irrefutable Let patterns This is the set of changes for RFC2086. Tracking issue #44495. Rendered [here](https://github.com/rust-lang/rfcs/pull/2086)
2018-06-25make the `while let` loop terminateNiko Matsakis-1/+1
2018-06-22Rollup merge of #51158 - ogham:patch-1, r=steveklabnikkennytm-0/+24
Mention spec and indented blocks in doctest docs Fixes #49717. This commit adds a new section to the Documentation Test docs, which briefly mentions indented code blocks, and links to the CommonMark specification for both. I’m not sure about saying "fenced code blocks the more popular choice in the Rust community” because it seems like I’m speaking for everyone, but I can’t think of a better way to phrase it!
2018-06-18Update books for next releaseMark Simulacrum-0/+0
2018-06-12update wording, do not change parserNiko Matsakis-6/+11
2018-06-12Stabilize #[repr(transparent)]Simon Sapin-176/+0
Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318 Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-06-11Mark alloc_jemalloc as perma-unstableSimon Sapin-13/+0
2018-06-11Move Unstable Book sections for #[global_allocator] and System to std::alloc ↵Simon Sapin-148/+0
docs
2018-06-11Remove some '#[feature]' attributes for stabilized featuresSimon Sapin-1/+0